Skip to content

Commit 0c35a34

Browse files
committed
clippy fix
1 parent a7bb454 commit 0c35a34

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

intel-mkl-src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
use anyhow::{bail, Result};
2626
use intel_mkl_tool::*;
27-
use std::{env, path::PathBuf, str::FromStr};
27+
use std::{str::FromStr};
2828

2929
#[cfg(feature = "mkl-static-lp64-iomp")]
3030
const MKL_CONFIG: &str = "mkl-static-lp64-iomp";

intel-mkl-tool/src/entry.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,17 @@ impl Library {
158158
/// - `C:/Program Files (x86)/IntelSWTools/` for Windows
159159
///
160160
pub fn new(config: Config) -> Result<Self> {
161-
if let Some(lib) = Self::pkg_config(config.clone()) {
161+
if let Some(lib) = Self::pkg_config(config) {
162162
return Ok(lib);
163163
}
164164
if let Ok(mklroot) = std::env::var("MKLROOT") {
165-
if let Some(lib) = Self::seek_directory(config.clone(), mklroot) {
165+
if let Some(lib) = Self::seek_directory(config, mklroot) {
166166
return Ok(lib);
167167
}
168168
}
169169
for path in ["/opt/intel", "C:/Program Files (x86)/IntelSWTools/"] {
170170
let path = Path::new(path);
171-
if let Some(lib) = Self::seek_directory(config.clone(), path) {
171+
if let Some(lib) = Self::seek_directory(config, path) {
172172
return Ok(lib);
173173
}
174174
}

0 commit comments

Comments
 (0)