ok/jj
1
0
Fork 0
forked from mirrors/jj

cleanup: fix a Clippy warning about an unnecessary to_path_buf()

This commit is contained in:
Martin von Zweigbergk 2022-03-10 21:20:31 -08:00 committed by Martin von Zweigbergk
parent f6ba34f3c3
commit 16c68ab821

View file

@ -1746,7 +1746,7 @@ fn cmd_init(ui: &mut Ui, command: &CommandHelper, args: &ArgMatches) -> Result<(
git_store_path = PathBuf::from("..")
.join("..")
.join("..")
.join(relative_path.to_path_buf());
.join(relative_path);
}
let (workspace, repo) =
Workspace::init_external_git(ui.settings(), wc_path.clone(), git_store_path)?;