mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 03:00:03 +00:00
Fix clippy lint and format (#1328)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
d768b8c029
commit
e5567ae526
3 changed files with 10 additions and 5 deletions
|
@ -196,7 +196,7 @@ impl<'s, 'rhs: 's> ops::AddAssign<Template<'rhs>> for Template<'s> {
|
|||
fn add_assign(&mut self, rhs: Template<'rhs>) {
|
||||
match rhs.items {
|
||||
Cow::Borrowed(items) => self.items.to_mut().extend(items.iter().cloned()),
|
||||
Cow::Owned(items) => self.items.to_mut().extend(items.into_iter()),
|
||||
Cow::Owned(items) => self.items.to_mut().extend(items),
|
||||
}
|
||||
|
||||
if let Some(default) = rhs.default {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue