mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 23:01:33 +00:00
*: Activate clippy::style
lint group (#2620)
This commit is contained in:
@ -172,7 +172,7 @@ where
|
||||
self.list.clear();
|
||||
}
|
||||
|
||||
pub fn contains_key(&mut self, key: &Key) -> bool {
|
||||
pub fn contains_key(&self, key: &Key) -> bool {
|
||||
self.map.contains_key(key)
|
||||
}
|
||||
|
||||
@ -208,7 +208,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
pub fn contains(&mut self, key: &Key) -> bool {
|
||||
pub fn contains(&self, key: &Key) -> bool {
|
||||
self.0.contains_key(key)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user