File tree 1 file changed +2
-7
lines changed
crates/ruff_workspace/src
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use anyhow::Result;
11
11
use anyhow:: { anyhow, bail} ;
12
12
use globset:: { Candidate , GlobSet } ;
13
13
use ignore:: { WalkBuilder , WalkState } ;
14
- use itertools:: { Either , Itertools } ;
14
+ use itertools:: Itertools ;
15
15
use log:: debug;
16
16
use path_absolutize:: path_dedot;
17
17
use rustc_hash:: { FxHashMap , FxHashSet } ;
@@ -204,12 +204,7 @@ impl<'a> Resolver<'a> {
204
204
205
205
/// Return an iterator over the resolved [`Settings`] in this [`Resolver`].
206
206
pub fn settings ( & self ) -> impl Iterator < Item = & Settings > {
207
- match self . pyproject_config . strategy {
208
- PyprojectDiscoveryStrategy :: Fixed => {
209
- Either :: Left ( std:: iter:: once ( & self . pyproject_config . settings ) )
210
- }
211
- PyprojectDiscoveryStrategy :: Hierarchical => Either :: Right ( self . settings . values ( ) ) ,
212
- }
207
+ std:: iter:: once ( & self . pyproject_config . settings ) . chain ( self . settings . values ( ) )
213
208
}
214
209
}
215
210
You can’t perform that action at this time.
0 commit comments