File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 24
24
25
25
use anyhow:: { bail, Result } ;
26
26
use intel_mkl_tool:: * ;
27
- use std:: { env , path :: PathBuf , str:: FromStr } ;
27
+ use std:: { str:: FromStr } ;
28
28
29
29
#[ cfg( feature = "mkl-static-lp64-iomp" ) ]
30
30
const MKL_CONFIG : & str = "mkl-static-lp64-iomp" ;
Original file line number Diff line number Diff line change @@ -158,17 +158,17 @@ impl Library {
158
158
/// - `C:/Program Files (x86)/IntelSWTools/` for Windows
159
159
///
160
160
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) {
162
162
return Ok ( lib) ;
163
163
}
164
164
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) {
166
166
return Ok ( lib) ;
167
167
}
168
168
}
169
169
for path in [ "/opt/intel" , "C:/Program Files (x86)/IntelSWTools/" ] {
170
170
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) {
172
172
return Ok ( lib) ;
173
173
}
174
174
}
You can’t perform that action at this time.
0 commit comments