File tree Expand file tree Collapse file tree
crates/ruff_workspace/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ use anyhow::Result;
1111use anyhow:: { anyhow, bail} ;
1212use globset:: { Candidate , GlobSet } ;
1313use ignore:: { WalkBuilder , WalkState } ;
14- use itertools:: { Either , Itertools } ;
14+ use itertools:: Itertools ;
1515use log:: debug;
1616use path_absolutize:: path_dedot;
1717use rustc_hash:: { FxHashMap , FxHashSet } ;
@@ -204,12 +204,7 @@ impl<'a> Resolver<'a> {
204204
205205 /// Return an iterator over the resolved [`Settings`] in this [`Resolver`].
206206 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 ( ) )
213208 }
214209}
215210
You can’t perform that action at this time.
0 commit comments