Skip to content

Commit

Permalink
Fix some clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Nov 8, 2020
1 parent 6d4c06f commit 320a01f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torch-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ use std::path::{Path, PathBuf};
use cmake::Config;
use curl::easy::Easy;
use failure::Fallible;
use zip;

const TORCH_VERSION: &'static str = "1.7.0";
const TORCH_VERSION: &str = "1.7.0";

fn download<P: AsRef<Path>>(source_url: &str, target_file: P) -> Fallible<()> {
let f = fs::File::create(&target_file)?;
Expand Down

0 comments on commit 320a01f

Please sign in to comment.