Skip to content

Commit 8c4b2da

Browse files
committed
fix unused warnings in rustfmt
1 parent 19ae40b commit 8c4b2da

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+
use crate::config::{Config, FileName};
42+
use crate::ignore_path::IgnorePathSet;
43+
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)