mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: Fix beta clippy issues
Fixed with 'cargo clippy --fix' mostly. Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
@@ -1229,18 +1229,14 @@ impl Guest {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub enum VerbosityLevel {
|
||||
#[default]
|
||||
Warn,
|
||||
Info,
|
||||
Debug,
|
||||
}
|
||||
|
||||
impl Default for VerbosityLevel {
|
||||
fn default() -> Self {
|
||||
Self::Warn
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for VerbosityLevel {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
use VerbosityLevel::*;
|
||||
|
||||
Reference in New Issue
Block a user