mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-21 21:28:11 +08:00
Fix clippy warnings (#3085)
* Run clippy fix * Clippy v2 * Make const item static * Cargo fmt
This commit is contained in:
@@ -301,13 +301,13 @@ impl TaggedValue {
|
||||
"MAGENTA" => Color::MAGENTA,
|
||||
"TRANSPARENT" => Color::TRANSPARENT,
|
||||
_ => {
|
||||
log::error!("Invalid default value color constant: {}", input);
|
||||
log::error!("Invalid default value color constant: {input}");
|
||||
return None;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
log::error!("Invalid default value color: {}", input);
|
||||
log::error!("Invalid default value color: {input}");
|
||||
None
|
||||
}
|
||||
|
||||
@@ -327,13 +327,13 @@ impl TaggedValue {
|
||||
"BottomCenter" => ReferencePoint::BottomCenter,
|
||||
"BottomRight" => ReferencePoint::BottomRight,
|
||||
_ => {
|
||||
log::error!("Invalid ReferencePoint default type variant: {}", input);
|
||||
log::error!("Invalid ReferencePoint default type variant: {input}");
|
||||
return None;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
log::error!("Invalid ReferencePoint default type: {}", input);
|
||||
log::error!("Invalid ReferencePoint default type: {input}");
|
||||
None
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user