mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-18 04:21:22 +00:00
*: Fix clippy warnings (#2227)
This commit is contained in:
@ -523,10 +523,7 @@ pub enum KeepAlive {
|
||||
impl KeepAlive {
|
||||
/// Returns true for `Yes`, false otherwise.
|
||||
pub fn is_yes(&self) -> bool {
|
||||
match *self {
|
||||
KeepAlive::Yes => true,
|
||||
_ => false,
|
||||
}
|
||||
matches!(*self, KeepAlive::Yes)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user