We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5c9e1e commit 95cf544Copy full SHA for 95cf544
src/tools/rustfmt/src/ignore_path.rs
@@ -32,16 +32,15 @@ impl IgnorePathSet {
32
33
#[cfg(test)]
34
mod test {
35
- use std::path::{Path, PathBuf};
36
-
37
- use crate::config::{Config, FileName};
38
- use crate::ignore_path::IgnorePathSet;
39
40
use rustfmt_config_proc_macro::nightly_only_test;
41
42
#[nightly_only_test]
43
#[test]
44
fn test_ignore_path_set() {
+ use std::path::{Path, PathBuf};
+
+ use crate::config::{Config, FileName};
+ use crate::ignore_path::IgnorePathSet;
45
let config =
46
Config::from_toml(r#"ignore = ["foo.rs", "bar_dir/*"]"#, Path::new("")).unwrap();
47
let ignore_path_set = IgnorePathSet::from_ignore_list(&config.ignore()).unwrap();
0 commit comments