style: Use more Box<[]> and Box<str> for quotes.

This commit is contained in:
Emilio Cobos Álvarez 2017-12-14 03:59:39 +01:00
parent 16f627a18a
commit 03f3521216
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
5 changed files with 50 additions and 31 deletions

View file

@ -311,9 +311,9 @@ impl<'a, 'b> ResolveGeneratedContentFragmentMutator<'a, 'b> {
&quotes.0[self.traversal.quote as usize]
};
if close {
close_quote.clone()
close_quote.to_string()
} else {
open_quote.clone()
open_quote.to_string()
}
}
}