Skip to content

Commit

Permalink
Fix some clippy lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Jun 18, 2023
1 parent 2fdc58b commit be0d705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl SystemInfo {
let lib = env_var_rerun("LIBTORCH_LIB")
.map(PathBuf::from)
.unwrap_or_else(|_| libtorch.clone());
let mut version_file = libtorch.clone();
let mut version_file = libtorch;
version_file.push("build-version");
if version_file.exists() {
if let Ok(version) = std::fs::read_to_string(&version_file) {
Expand Down

0 comments on commit be0d705

Please sign in to comment.