Skip to content

Commit 95cf544

Browse files
Fix up unused imports in rustfmt tests
1 parent e5c9e1e commit 95cf544

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/tools/rustfmt/src/ignore_path.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,15 @@ impl IgnorePathSet {
3232

3333
#[cfg(test)]
3434
mod test {
35-
use std::path::{Path, PathBuf};
36-
37-
use crate::config::{Config, FileName};
38-
use crate::ignore_path::IgnorePathSet;
39-
4035
use rustfmt_config_proc_macro::nightly_only_test;
4136

4237
#[nightly_only_test]
4338
#[test]
4439
fn test_ignore_path_set() {
40+
use std::path::{Path, PathBuf};
41+
42+
use crate::config::{Config, FileName};
43+
use crate::ignore_path::IgnorePathSet;
4544
let config =
4645
Config::from_toml(r#"ignore = ["foo.rs", "bar_dir/*"]"#, Path::new("")).unwrap();
4746
let ignore_path_set = IgnorePathSet::from_ignore_list(&config.ignore()).unwrap();

0 commit comments

Comments
 (0)