Skip to content

Commit

Permalink
fix(warn): &Path not need clone
Browse files Browse the repository at this point in the history
    &Path not need clone
  • Loading branch information
ZengGengSen committed Feb 2, 2024
1 parent b39de46 commit d8427ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdl2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn init_submodule(sdl_path: &Path) {
if !sdl_path.join("CMakeLists.txt").exists() {
Command::new("git")
.args(&["submodule", "update", "--init"])
.current_dir(sdl_path.clone())
.current_dir(sdl_path)
.status()
.expect("Git is needed to retrieve the SDL source files");
}
Expand Down

0 comments on commit d8427ff

Please sign in to comment.