style: split the whitespace error return statement

main
Angelo Fallaria 2 years ago
parent 62e20946de
commit 4bce5f71d1

@ -138,7 +138,9 @@ fn parse_contents(contents: String) -> Result<Vec<Hotkey>, Error> {
// Error if the command doesn't start with whitespace
if !command.starts_with(' ') && !command.starts_with('\t') {
return Err(Error::InvalidConfig(ParseError::CommandWithoutWhitespace(real_line_no + 1)));
return Err(Error::InvalidConfig(ParseError::CommandWithoutWhitespace(
real_line_no + 1,
)));
}
// Push a new hotkey to the hotkeys vector
@ -393,7 +395,6 @@ pesto
#[test]
fn test_command_without_whitespace() -> std::io::Result<()> {
let contents = "0
firefox

Loading…
Cancel
Save