Run cargo fmt
on latest stable
This commit is contained in:
parent
b4a0669b37
commit
52fb87aaf4
2 changed files with 2 additions and 2 deletions
|
@ -242,7 +242,7 @@ impl<'a> Lexer<'a> {
|
||||||
return Err(Spanning::zero_width(
|
return Err(Spanning::zero_width(
|
||||||
&old_pos,
|
&old_pos,
|
||||||
LexerError::UnknownEscapeSequence(format!("\\{}", c)),
|
LexerError::UnknownEscapeSequence(format!("\\{}", c)),
|
||||||
))
|
));
|
||||||
}
|
}
|
||||||
'\\' => escaped = true,
|
'\\' => escaped = true,
|
||||||
'"' if !escaped => {
|
'"' if !escaped => {
|
||||||
|
|
|
@ -85,7 +85,7 @@ fn derive_from_variant(variant: &Variant, ident: &Ident) -> Result<TokenStream,
|
||||||
_ => {
|
_ => {
|
||||||
return Err(String::from(
|
return Err(String::from(
|
||||||
"Only enums with exactly one unnamed field per variant are supported",
|
"Only enums with exactly one unnamed field per variant are supported",
|
||||||
))
|
));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue