fix clippy again

This commit is contained in:
damirka 2021-07-20 00:39:03 +03:00
parent f80717afef
commit 7f6df6c41d

View File

@ -125,7 +125,7 @@ impl Command for Add {
// Dumb compatibility hack.
// TODO: Remove once `leo add` functionality is discussed.
if self.version.is_some() {
path.push(format!("{}-{}@{}", author.clone(), package_name, self.version.unwrap()));
path.push(format!("{}-{}@{}", author, package_name, self.version.unwrap()));
} else {
path.push(package_name.clone());
}