diff options
| author | KyleMiles <krm504@nyu.edu> | 2021-05-11 22:51:38 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2021-05-11 22:51:38 -0400 |
| commit | 21da3f95b00431f4d10d8b5e67ee402bffde129c (patch) | |
| tree | bd7a738ca45b4aac7572f5ecee8924cd3feaebf2 /rust/src/filemetadata.rs | |
| parent | 4bd1f6b1477b910b580a0bcfcde118bcefc1ddc0 (diff) | |
Rust API; More setting support, fix edgecase in open_view_with_options, and fixed using mut for const correctness (mut != ~const)
Diffstat (limited to 'rust/src/filemetadata.rs')
| -rw-r--r-- | rust/src/filemetadata.rs | 7 |
1 files changed, 2 insertions, 5 deletions
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<S: BnStrCompatible>( - &mut self, + &self, filename: S, ) -> Result<Ref<BinaryView>, ()> { let filename = filename.as_bytes_with_nul(); @@ -192,10 +192,7 @@ impl FileMetadata { } } - pub fn open_database<S: BnStrCompatible>( - &mut self, - filename: S, - ) -> Result<Ref<BinaryView>, ()> { + pub fn open_database<S: BnStrCompatible>(&self, filename: S) -> Result<Ref<BinaryView>, ()> { let filename = filename.as_bytes_with_nul(); let filename_ptr = filename.as_ref().as_ptr() as *mut _; |
