@@ -38,7 +38,7 @@ impl LinkFlags {
38
38
pub fn parse ( line : & str ) -> Result < Self , Error > {
39
39
let mut search_paths = HashSet :: new ( ) ;
40
40
let mut libs = HashSet :: new ( ) ;
41
- for entry in line. split ( " " ) {
41
+ for entry in line. split ( ' ' ) {
42
42
if entry. starts_with ( "-L" ) {
43
43
let path = PathBuf :: from ( entry. trim_start_matches ( "-L" ) ) ;
44
44
if !path. exists ( ) {
@@ -79,10 +79,10 @@ impl MakeConf {
79
79
let buf = io:: BufReader :: new ( f) ;
80
80
for line in buf. lines ( ) {
81
81
let line = line. expect ( "Makefile.conf should not include non-UTF8 string" ) ;
82
- if line. len ( ) == 0 {
82
+ if line. is_empty ( ) {
83
83
continue ;
84
84
}
85
- let entry: Vec < _ > = line. split ( "=" ) . collect ( ) ;
85
+ let entry: Vec < _ > = line. split ( '=' ) . collect ( ) ;
86
86
if entry. len ( ) != 2 {
87
87
continue ;
88
88
}
@@ -133,7 +133,7 @@ impl LibInspect {
133
133
. lines ( )
134
134
. flat_map ( |line| {
135
135
let line = line. expect ( "nm output should not include non-UTF8 output" ) ;
136
- let entry: Vec < _ > = line. trim ( ) . split ( " " ) . collect ( ) ;
136
+ let entry: Vec < _ > = line. trim ( ) . split ( ' ' ) . collect ( ) ;
137
137
if entry. len ( ) == 3 && entry[ 1 ] == "T" {
138
138
Some ( entry[ 2 ] . into ( ) )
139
139
} else {
@@ -173,7 +173,7 @@ impl LibInspect {
173
173
return true ;
174
174
}
175
175
}
176
- return false ;
176
+ false
177
177
}
178
178
179
179
pub fn has_lapack ( & self ) -> bool {
@@ -182,7 +182,7 @@ impl LibInspect {
182
182
return true ;
183
183
}
184
184
}
185
- return false ;
185
+ false
186
186
}
187
187
188
188
pub fn has_lapacke ( & self ) -> bool {
@@ -191,18 +191,18 @@ impl LibInspect {
191
191
return true ;
192
192
}
193
193
}
194
- return false ;
194
+ false
195
195
}
196
196
197
197
pub fn has_lib ( & self , name : & str ) -> bool {
198
198
for lib in & self . libs {
199
- if let Some ( stem) = lib. split ( "." ) . next ( ) {
199
+ if let Some ( stem) = lib. split ( '.' ) . next ( ) {
200
200
if stem == format ! ( "lib{}" , name) {
201
201
return true ;
202
202
}
203
203
} ;
204
204
}
205
- return false ;
205
+ false
206
206
}
207
207
}
208
208
0 commit comments