Skip to content

Commit

Permalink
Merge pull request #2 from crewnew/remove-in-band-lifetimes
Browse files Browse the repository at this point in the history
Remove in-band-lifetimes, because it's deprecated.
  • Loading branch information
Selyatin committed Mar 2, 2022
2 parents 13688aa + 47f5ca6 commit dfd3d70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/db/caching_int_map.rs
Expand Up @@ -65,7 +65,7 @@ impl CachingIntMap {
}
}
// very shitty code. spent 2 hours figuring out how to do this get method generically
pub async fn get_bind2(&'c self, key: &'c str, bind1: i64, bind2: i64) -> i64 {
pub async fn get_bind2<'c>(&'c self, key: &'c str, bind1: i64, bind2: i64) -> i64 {
let i: Option<i64> = self.lru.write().await.get(key).copied();

match i {
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
@@ -1,4 +1,3 @@
#![feature(in_band_lifetimes)]
#![feature(proc_macro_hygiene, decl_macro)]
#![warn(clippy::print_stdout)]

Expand Down

0 comments on commit dfd3d70

Please sign in to comment.