Format with rustfmt 0.7.0

This commit is contained in:
David Tolnay
2018-05-22 21:06:32 -07:00
parent ad62a6895c
commit 06dcbbbaba
5 changed files with 27 additions and 13 deletions
+1 -3
View File
@@ -948,9 +948,7 @@ impl Field {
// Parse `#[serde(borrow = "'a + 'b")]`
Meta(NameValue(ref m)) if m.ident == "borrow" => {
if let Ok(lifetimes) =
parse_lit_into_lifetimes(cx, &m.ident, &m.lit)
{
if let Ok(lifetimes) = parse_lit_into_lifetimes(cx, &m.ident, &m.lit) {
if let Ok(borrowable) = borrowable_lifetimes(cx, &ident, &field.ty) {
for lifetime in &lifetimes {
if !borrowable.contains(lifetime) {