Skip to content

Commit

Permalink
Clippy fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentMazare committed Jan 11, 2024
1 parent 0cd0f3e commit d708b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion candle-core/examples/tensor-tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ fn run_quantize_safetensors(
}

fn run_dequantize(in_file: std::path::PathBuf, out_file: std::path::PathBuf) -> Result<()> {
let mut in_file = std::fs::File::open(&in_file)?;
let mut in_file = std::fs::File::open(in_file)?;
let content = gguf_file::Content::read(&mut in_file)?;
let mut tensors = std::collections::HashMap::new();
for (tensor_name, _) in content.tensor_infos.iter() {
Expand Down

0 comments on commit d708b77

Please sign in to comment.