Rust Compiler ErrorsWarning
clippy::single_matchClippy — Single Match Can Be if-let
A match expression with only one meaningful arm can be simplified to an if let.
rustcargo
View details clippy::clone_on_copyThe clone() method is called on a type that implements Copy.
Copy types are automatically copied when assigned or passed. Calling .clone() explicitly is unnecessary and misleading because it suggests the type is not Copy.
Remove the .clone() call. Copy types are duplicated automatically. The compiler will copy the value without an explicit clone.
clippy::single_matchA match expression with only one meaningful arm can be simplified to an if let.
E0597A reference outlives the data it points to.
E0152A language item (#[lang = ...]) is defined more than once.
E0404A type was used where a trait was expected.
E0499A value is borrowed mutably more than once at the same time.
E0271An associated type in a trait implementation does not match the expected type.