File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -323,14 +323,14 @@ impl Runner for LintRunner {
323323 // Spawn linting in another thread so diagnostics can be printed immediately from diagnostic_service.run.
324324 rayon:: spawn ( move || {
325325 let mut lint_service = LintService :: new ( linter, allocator_pool, options) ;
326- let _ = lint_service. with_paths ( paths) ;
326+ lint_service. with_paths ( paths) ;
327327
328328 // Use `RawTransferFileSystem` if `oxlint2` feature is enabled.
329329 // This reads the source text into start of allocator, instead of the end.
330330 #[ cfg( all( feature = "oxlint2" , not( feature = "disable_oxlint2" ) ) ) ]
331331 {
332332 use crate :: raw_fs:: RawTransferFileSystem ;
333- let _ = lint_service. with_file_system ( Box :: new ( RawTransferFileSystem ) ) ;
333+ lint_service. with_file_system ( Box :: new ( RawTransferFileSystem ) ) ;
334334 }
335335
336336 lint_service. run ( & tx_error) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,6 @@ impl LintService {
7575 Self { runtime }
7676 }
7777
78- #[ must_use]
7978 pub fn with_file_system (
8079 & mut self ,
8180 file_system : Box < dyn RuntimeFileSystem + Sync + Send > ,
@@ -84,7 +83,6 @@ impl LintService {
8483 self
8584 }
8685
87- #[ must_use]
8886 pub fn with_paths ( & mut self , paths : Vec < Arc < OsStr > > ) -> & mut Self {
8987 self . runtime . with_paths ( paths) ;
9088 self
Original file line number Diff line number Diff line change @@ -195,12 +195,12 @@ impl Runtime {
195195 pub fn with_file_system (
196196 & mut self ,
197197 file_system : Box < dyn RuntimeFileSystem + Sync + Send > ,
198- ) -> & Self {
198+ ) -> & mut Self {
199199 self . file_system = file_system;
200200 self
201201 }
202202
203- pub fn with_paths ( & mut self , paths : Vec < Arc < OsStr > > ) -> & Self {
203+ pub fn with_paths ( & mut self , paths : Vec < Arc < OsStr > > ) -> & mut Self {
204204 self . paths = paths. into_iter ( ) . collect ( ) ;
205205 self
206206 }
Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ impl Tester {
545545 let paths = vec ! [ Arc :: <OsStr >:: from( path_to_lint. as_os_str( ) ) ] ;
546546 let options = LintServiceOptions :: new ( cwd) . with_cross_module ( self . plugins . has_import ( ) ) ;
547547 let mut lint_service = LintService :: new ( linter, AllocatorPool :: default ( ) , options) ;
548- let _ = lint_service
548+ lint_service
549549 . with_file_system ( Box :: new ( TesterFileSystem :: new (
550550 path_to_lint,
551551 source_text. to_string ( ) ,
You can’t perform that action at this time.
0 commit comments