Skip to content
Snippets Groups Projects
Commit a817ec34 authored by Denis Smirnov's avatar Denis Smirnov
Browse files

fix: please cargo pedantic for the schema

parent c71b5c38
No related branches found
No related tags found
1 merge request!1414sbroad import
......@@ -13,11 +13,12 @@ impl From<String> for Cluster {
fn from(s: String) -> Self {
let docs = YamlLoader::load_from_str(&s).unwrap();
match docs.is_empty() {
true => Self::new(),
false => Cluster {
if docs.is_empty() {
Self::new()
} else {
Cluster {
schema: docs[0].clone(),
},
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment