refact: use clone instead to_owned
This commit is contained in:
1 parent
1022db2d48
commit
a573cd18f8
2 files changed
+2
-2
No files matched your search
@@ -364,7 +364,7 @@ impl Pacdef {
|
||||
for name in new_groups {
|
||||
ensure!(
|
||||
*name != "." && *name != "..",
|
||||
crate::Error::InvalidGroupName(name.to_owned())
|
||||
crate::Error::InvalidGroupName(name.clone())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ impl Group {
|
||||
|
||||
if path.is_dir() {
|
||||
if warn_not_symlinks && path.is_symlink() {
|
||||
symlink_dirs.push(path.to_owned());
|
||||
symlink_dirs.push(path);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user