diff options
| author | Mason Reed <mason@vector35.com> | 2025-05-04 20:43:32 -0400 |
|---|---|---|
| committer | Mason Reed <35282038+emesare@users.noreply.github.com> | 2025-05-12 17:45:24 -0400 |
| commit | f32f083c81a5034530ac33ad2bc460dd234186a5 (patch) | |
| tree | 02e5799b595322b3a6967977ac69257eb023e882 /rust/src/database.rs | |
| parent | e12dac56c123bcf39708cb381497753250eb1887 (diff) | |
[Rust] More cleanup regarding `BnString`
- Removed `to_string` shortcut from `BnString`.
- Misc formatting
Diffstat (limited to 'rust/src/database.rs')
| -rw-r--r-- | rust/src/database.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/database.rs b/rust/src/database.rs index d01839d2..61d6f608 100644 --- a/rust/src/database.rs +++ b/rust/src/database.rs @@ -147,10 +147,10 @@ impl Database { } /// Get a dictionary of all globals - pub fn globals(&self) -> HashMap<String, String> { + pub fn globals(&self) -> HashMap<String, BnString> { self.global_keys() .iter() - .filter_map(|key| Some((key.to_string(), self.read_global(key)?.to_string()))) + .filter_map(|key| Some((key.to_string(), self.read_global(key)?))) .collect() } |
