Clippy
This commit is contained in:
parent
2d79376c8d
commit
f8db3d180c
|
@ -386,15 +386,13 @@ fn export_description(
|
|||
let tab = if top_level { "" } else { "\t" };
|
||||
let description = description.replace('"', r#"\""#);
|
||||
writeln!(sdl, "{}\"{}\"", tab, description).ok();
|
||||
} else {
|
||||
if top_level {
|
||||
} else if top_level {
|
||||
writeln!(sdl, "\"\"\"\n{}\n\"\"\"", description).ok();
|
||||
} else {
|
||||
let description = description.replace('\n', "\n\t");
|
||||
writeln!(sdl, "\t\"\"\"\n\t{}\n\t\"\"\"", description).ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn export_input_value(input_value: &MetaInputValue) -> String {
|
||||
if let Some(default_value) = &input_value.default_value {
|
||||
|
|
Loading…
Reference in New Issue
Block a user