lint: into -> from for clippy

buddies-main-deployment
James Prestwich 4 years ago
parent 1490207c7d
commit 6e598c3240
No known key found for this signature in database
GPG Key ID: 75A7F5C06D747046
  1. 6
      rust/optics-base/src/settings/log.rs

@ -58,9 +58,9 @@ impl Default for Level {
}
}
impl Into<tracing_subscriber::filter::LevelFilter> for Level {
fn into(self) -> tracing_subscriber::filter::LevelFilter {
match self {
impl From<Level> for tracing_subscriber::filter::LevelFilter {
fn from(level: &Level) -> tracing_subscriber::filter::LevelFilter {
match level {
Level::Off => tracing_subscriber::filter::LevelFilter::OFF,
Level::Error => tracing_subscriber::filter::LevelFilter::ERROR,
Level::Warn => tracing_subscriber::filter::LevelFilter::WARN,

Loading…
Cancel
Save