refactor: Remove unneeded String allocation

pull/24376/head
Jake Goulding 2020-02-21 09:33:11 -05:00
parent 3afb2c6c70
commit 07b65e32d5
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ impl RocksDB {
name: &str,
) -> Result<Option<Arc<Bucket>>, StorageError> {
let buckets = self.bucket_map.read().unwrap();
let key = bucket_key(org_id, &name.to_string());
let key = bucket_key(org_id, name);
match buckets.get(&key) {
Some(b) => Ok(Some(b.clone())),
None => Ok(None),