Skip to content

Commit 7fc5e01

Browse files
committed
fix example & clippy
1 parent 3e5c5aa commit 7fc5e01

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/expiring-tags.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ async fn main() -> anyhow::Result<()> {
143143
let options = Options {
144144
path: PathOptions::new(&path),
145145
gc: Some(GcConfig {
146+
add_protected: None,
146147
interval: Duration::from_secs(10),
147148
}),
148149
inline: InlineOptions::default(),

src/hash.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl From<&[u8; 32]> for Hash {
111111

112112
impl PartialOrd for Hash {
113113
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
114-
Some(self.0.as_bytes().cmp(other.0.as_bytes()))
114+
Some(self.cmp(other))
115115
}
116116
}
117117

0 commit comments

Comments
 (0)