Skip to content

Commit e6d1282

Browse files
committed
clippy
1 parent 9d7d3ab commit e6d1282

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/ranger.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ mod tests {
877877
Prefix(K),
878878
}
879879

880-
impl<'a, K, V> Iterator for SimpleRangeIterator<'a, K, V>
880+
impl<K, V> Iterator for SimpleRangeIterator<'_, K, V>
881881
where
882882
K: RangeKey + Default,
883883
V: Clone,

src/store/fs.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,13 +630,13 @@ impl<'a> StoreInstance<'a> {
630630
}
631631
}
632632

633-
impl<'a> PublicKeyStore for StoreInstance<'a> {
633+
impl PublicKeyStore for StoreInstance<'_> {
634634
fn public_key(&self, id: &[u8; 32]) -> std::result::Result<VerifyingKey, SignatureError> {
635635
self.store.public_key(id)
636636
}
637637
}
638638

639-
impl<'a> super::DownloadPolicyStore for StoreInstance<'a> {
639+
impl super::DownloadPolicyStore for StoreInstance<'_> {
640640
fn get_download_policy(&mut self, namespace: &NamespaceId) -> Result<DownloadPolicy> {
641641
self.store.get_download_policy(namespace)
642642
}
@@ -936,7 +936,7 @@ impl<'a> LatestIterator<'a> {
936936
}
937937
}
938938

939-
impl<'a> Iterator for LatestIterator<'a> {
939+
impl Iterator for LatestIterator<'_> {
940940
type Item = Result<(AuthorId, u64, Vec<u8>)>;
941941

942942
fn next(&mut self) -> Option<Self::Item> {

src/store/fs/ranges.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub trait RangeExt<K: Key, V: Value> {
3737
}
3838
}
3939

40-
impl<'a, K: Key + 'static, V: Value + 'static> RangeExt<K, V> for Range<'a, K, V> {
40+
impl<K: Key + 'static, V: Value + 'static> RangeExt<K, V> for Range<'_, K, V> {
4141
fn next_map<T>(
4242
&mut self,
4343
map: impl for<'x> Fn(K::SelfType<'x>, V::SelfType<'x>) -> T,
@@ -114,7 +114,7 @@ impl RecordsRange<'static> {
114114
}
115115
}
116116

117-
impl<'a> Iterator for RecordsRange<'a> {
117+
impl Iterator for RecordsRange<'_> {
118118
type Item = anyhow::Result<SignedEntry>;
119119
fn next(&mut self) -> Option<Self::Item> {
120120
self.0.next_map(into_entry)

src/sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,7 +2292,7 @@ mod tests {
22922292
store: &'a mut Store,
22932293
namespace: NamespaceId,
22942294
}
2295-
impl<'a> QueryTester<'a> {
2295+
impl QueryTester<'_> {
22962296
fn assert(&mut self, query: impl Into<Query>, expected: Vec<(&'static str, &Author)>) {
22972297
let query = query.into();
22982298
let actual = self

0 commit comments

Comments
 (0)