Fix clippy warnings.
This commit fixes the current set of (stable) clippy warnings in the repo.
This commit is contained in:
committed by
Andrew Brown
parent
1176e4f178
commit
9f506692c2
@@ -27,9 +27,9 @@ impl Init {
|
||||
/// Return the size of the data to be initialized.
|
||||
pub fn size(&self) -> usize {
|
||||
match *self {
|
||||
Init::Uninitialized => panic!("data size not initialized yet"),
|
||||
Init::Zeros { size } => size,
|
||||
Init::Bytes { ref contents } => contents.len(),
|
||||
Self::Uninitialized => panic!("data size not initialized yet"),
|
||||
Self::Zeros { size } => size,
|
||||
Self::Bytes { ref contents } => contents.len(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user