Fix rustfmt check

This commit is contained in:
Temirkhan Myrzamadi 2020-02-19 05:02:51 +06:00
parent 1efc086df4
commit 469b873ec0
2 changed files with 4 additions and 21 deletions

View file

@ -23,12 +23,7 @@ impl Command {
new_name = rename_by_rule(name, &rename_rule);
renamed = true;
}
Ok(Self {
prefix,
description,
name: new_name,
renamed,
})
Ok(Self { prefix, description, name: new_name, renamed })
}
}
@ -55,9 +50,5 @@ fn parse_attrs(attrs: &[Attr]) -> Result<CommandAttrs, String> {
}
}
Ok(CommandAttrs {
prefix,
description,
rename: rename_rule,
})
Ok(CommandAttrs { prefix, description, rename: rename_rule })
}

View file

@ -19,11 +19,7 @@ impl CommandEnum {
_ => return Err("disallowed value".to_owned()),
}
}
Ok(Self {
prefix,
description,
rename_rule: rename,
})
Ok(Self { prefix, description, rename_rule: rename })
}
}
@ -50,9 +46,5 @@ fn parse_attrs(attrs: &[Attr]) -> Result<CommandAttrs, String> {
}
}
Ok(CommandAttrs {
prefix,
description,
rename: rename_rule,
})
Ok(CommandAttrs { prefix, description, rename: rename_rule })
}