should_implement_trait

This commit is contained in:
Johann Hemmann 2024-01-19 17:53:09 +01:00
parent 159b4c9fe9
commit 9dd07f0bc4

View file

@ -414,6 +414,7 @@ impl Hash for FnAbi {
} }
impl FnAbi { impl FnAbi {
#[allow(clippy::should_implement_trait)]
pub fn from_str(s: &str) -> FnAbi { pub fn from_str(s: &str) -> FnAbi {
match s { match s {
"aapcs-unwind" => FnAbi::AapcsUnwind, "aapcs-unwind" => FnAbi::AapcsUnwind,