Skip to content

Commit

Permalink
Make Clippy happy with Rust 1.54
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Aug 13, 2021
1 parent 84d1d9a commit cc0bfc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/codegen/parse_attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ impl ToTokens for Kind {
});
tokens.append_all(&[quote! {
::synthez::parse::attrs::kind::#variant
}])
}]);
}
}

Expand Down Expand Up @@ -653,6 +653,6 @@ impl ToTokens for Dedup {
});
tokens.append_all(&[quote! {
::synthez::parse::attrs::dedup::#variant
}])
}]);
}
}
2 changes: 1 addition & 1 deletion core/src/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub trait Container<V> {
/// previous one, if any.
#[inline]
fn set(&mut self, value: V) {
drop(self.replace(value))
drop(self.replace(value));
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/src/parse/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn doc_string(
}
}
if !out.is_empty() {
out.truncate(out.trim_end().len())
out.truncate(out.trim_end().len());
}

Ok(span.map(|s| Spanning::new(out, s)))
Expand Down

0 comments on commit cc0bfc6

Please sign in to comment.