Skip to content

Commit

Permalink
fix: get signature
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWhiteWu committed Aug 16, 2023
1 parent 2a53718 commit 1c69b9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastcache"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["Pure White <me@purewhite.io>"]
description = "A performant but not-so-accurate time and capacity based cache for Rust."
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ where
}

/// Get the value associated with the given key, if it exists and is not expired.
pub fn get(&self, key: K) -> Option<Value<V>> {
pub fn get(&self, key: &K) -> Option<Value<V>> {
let v = self.map.get(&key);
if v.is_none() {
return None;
Expand Down

0 comments on commit 1c69b9d

Please sign in to comment.