Commit 1e424d42 authored by Cyril Plisko's avatar Cyril Plisko

allow(clippy::find_map) for InstanceType::from

parent 252e5b4c
Pipeline #81167336 failed with stage
in 3 minutes and 57 seconds
......@@ -23,6 +23,7 @@ impl InstanceType {
Self { r#type }
}
#[allow(clippy::find_map)] // because it is not easily convertable to find_map()
pub fn from(name: impl AsRef<str>) -> Result<Self, ()> {
let name = name.as_ref();
TYPES
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment