File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
crates/rust-analyzer/src/config Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,6 @@ fn parse_toml(
356
356
mod tests {
357
357
use std:: path:: { Path , PathBuf } ;
358
358
359
- use itertools:: Itertools ;
360
359
use vfs:: { AbsPath , AbsPathBuf , VfsPath } ;
361
360
362
361
fn alloc_file_id ( vfs : & mut Vfs , s : & str ) -> FileId {
@@ -496,15 +495,9 @@ mod tests {
496
495
497
496
let source_roots =
498
497
[ "/root/crate_a" , "/root/crate_a/crate_b" ] . map ( Path :: new) . map ( AbsPath :: assert) ;
499
- let source_root_tomls = source_roots
500
- . iter ( )
498
+ let [ crate_a, crate_b] = source_roots
501
499
. map ( |dir| dir. join ( "rust-analyzer.toml" ) )
502
- . map ( |path| AbsPathBuf :: try_from ( path) . unwrap ( ) )
503
- . map ( |path| vfs. alloc_file_id ( path. into ( ) ) )
504
- . collect_vec ( ) ;
505
- let & [ crate_a, crate_b] = & source_root_tomls[ ..] else {
506
- panic ! ( ) ;
507
- } ;
500
+ . map ( |path| vfs. alloc_file_id ( path. into ( ) ) ) ;
508
501
509
502
vfs. set_file_id_contents (
510
503
xdg,
You can’t perform that action at this time.
0 commit comments