Pass options as immutable borrow

master
Martin Ek 6 years ago
parent b01acb71a9
commit 4ff418ab43
  1. 4
      src/db_options.rs

@ -995,9 +995,9 @@ impl Options {
/// index_sparseness: 16, /// index_sparseness: 16,
/// }; /// };
/// ///
/// opts.set_plain_table_factory(factory_opts); /// opts.set_plain_table_factory(&factory_opts);
/// ``` /// ```
pub fn set_plain_table_factory(&mut self, options: PlainTableFactoryOptions) { pub fn set_plain_table_factory(&mut self, options: &PlainTableFactoryOptions) {
unsafe { unsafe {
ffi::rocksdb_options_set_plain_table_factory( ffi::rocksdb_options_set_plain_table_factory(
self.inner, self.inner,

Loading…
Cancel
Save