1
0
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:
utam0k 2021-10-08 17:10:34 +09:00 committed by GitHub
parent 07d925a3bb
commit 3ecac97720
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -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