Skip to content

Commit

Permalink
Remove 'static lifetime on key-type trait (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardpringle authored Sep 28, 2023
1 parent 646a04a commit 403f7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firewood/src/v2/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ use async_trait::async_trait;
/// A `KeyType` is something that can be xcast to a u8 reference,
/// and can be sent and shared across threads. References with
/// lifetimes are not allowed (hence 'static)
pub trait KeyType: AsRef<[u8]> + Send + Sync + Debug + 'static {}
pub trait KeyType: AsRef<[u8]> + Send + Sync + Debug {}

impl<T> KeyType for T where T: AsRef<[u8]> + Send + Sync + Debug + 'static {}
impl<T> KeyType for T where T: AsRef<[u8]> + Send + Sync + Debug {}

/// A `ValueType` is the same as a `KeyType`. However, these could
/// be a different type from the `KeyType` on a given API call.
Expand Down

0 comments on commit 403f7d8

Please sign in to comment.