mirror of
https://github.com/containers/youki
synced 2024-11-23 09:21:57 +01:00
remove a unnecessary clone method. (#370)
This commit is contained in:
parent
07d925a3bb
commit
3ecac97720
@ -40,7 +40,7 @@ fn parse_tests(tests: &[String]) -> Vec<(&str, Option<Vec<&str>>)> {
|
||||
fn main() -> Result<()> {
|
||||
let opts: Opts = Opts::parse();
|
||||
|
||||
match std::fs::canonicalize(opts.runtime.clone()) {
|
||||
match std::fs::canonicalize(&opts.runtime) {
|
||||
// runtime path is relative or resolved correctly
|
||||
Ok(path) => set_runtime_path(&path),
|
||||
// runtime path is name of program which probably exists in $PATH
|
||||
|
Loading…
Reference in New Issue
Block a user