remove redundant clones

This commit is contained in:
Matthias Krüger 2022-09-03 07:58:41 +02:00
parent b88e510cc8
commit 57198b549f
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ impl AttrWrapper {
// Prepend `self.attrs` to `attrs`.
// FIXME: require passing an NT to prevent misuse of this method
pub(crate) fn prepend_to_nt_inner(self, attrs: &mut AttrVec) {
let mut self_attrs = self.attrs.clone();
let mut self_attrs = self.attrs;
std::mem::swap(attrs, &mut self_attrs);
attrs.extend(self_attrs);
}