File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ use crate::BuildRequest;
8
8
use anyhow:: Context ;
9
9
use futures_util:: { stream:: FuturesUnordered , StreamExt } ;
10
10
use std:: path:: Path ;
11
- use walkdir:: WalkDir ;
12
11
13
12
/// Check the Rust files in the project for issues.
14
13
#[ derive( Clone , Debug , Parser ) ]
@@ -125,8 +124,7 @@ async fn check_files_and_report(files_to_check: Vec<PathBuf>) -> Result<()> {
125
124
}
126
125
127
126
pub ( crate ) fn collect_rs_files ( folder : & Path , files : & mut Vec < PathBuf > ) {
128
- let dir = WalkDir :: new ( folder) . follow_links ( true ) . into_iter ( ) ;
129
- for entry in dir. flatten ( ) {
127
+ for entry in ignore:: Walk :: new ( folder) . flatten ( ) {
130
128
if entry. path ( ) . extension ( ) == Some ( "rs" . as_ref ( ) ) {
131
129
files. push ( entry. path ( ) . to_path_buf ( ) ) ;
132
130
}
Original file line number Diff line number Diff line change @@ -348,10 +348,6 @@ impl Workspace {
348
348
let mut ignore_builder = ignore:: gitignore:: GitignoreBuilder :: new ( workspace_dir) ;
349
349
ignore_builder. add ( workspace_dir. join ( ".gitignore" ) ) ;
350
350
351
- // todo!()
352
- // let workspace_dir = self.workspace_dir();
353
- // ignore_builder.add(workspace_dir.join(".gitignore"));
354
-
355
351
for path in Self :: default_ignore_list ( ) {
356
352
ignore_builder
357
353
. add_line ( None , path)
You can’t perform that action at this time.
0 commit comments