From 21da3f95b00431f4d10d8b5e67ee402bffde129c Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Tue, 11 May 2021 22:51:38 -0400 Subject: Rust API; More setting support, fix edgecase in open_view_with_options, and fixed using mut for const correctness (mut != ~const) --- rust/src/filemetadata.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'rust/src/filemetadata.rs') diff --git a/rust/src/filemetadata.rs b/rust/src/filemetadata.rs index 809abea4..8ba25387 100644 --- a/rust/src/filemetadata.rs +++ b/rust/src/filemetadata.rs @@ -176,7 +176,7 @@ impl FileMetadata { } pub fn open_database_for_configuration( - &mut self, + &self, filename: S, ) -> Result, ()> { let filename = filename.as_bytes_with_nul(); @@ -192,10 +192,7 @@ impl FileMetadata { } } - pub fn open_database( - &mut self, - filename: S, - ) -> Result, ()> { + pub fn open_database(&self, filename: S) -> Result, ()> { let filename = filename.as_bytes_with_nul(); let filename_ptr = filename.as_ref().as_ptr() as *mut _; -- cgit v1.3.1