Run cargo fmt on latest stable

This commit is contained in:
Christian Legnitto 2019-01-25 17:37:34 -08:00 committed by theduke
parent b4a0669b37
commit 52fb87aaf4
2 changed files with 2 additions and 2 deletions
juniper/src/parser
juniper_codegen/src

View file

@ -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 => {

View file

@ -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",
)) ));
} }
}; };