Skip to content

Commit

Permalink
Fix up unused imports in rustfmt tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Feb 21, 2022
1 parent e5c9e1e commit 95cf544
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/tools/rustfmt/src/ignore_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,15 @@ impl IgnorePathSet {

#[cfg(test)]
mod test {
use std::path::{Path, PathBuf};

use crate::config::{Config, FileName};
use crate::ignore_path::IgnorePathSet;

use rustfmt_config_proc_macro::nightly_only_test;

#[nightly_only_test]
#[test]
fn test_ignore_path_set() {
use std::path::{Path, PathBuf};

use crate::config::{Config, FileName};
use crate::ignore_path::IgnorePathSet;
let config =
Config::from_toml(r#"ignore = ["foo.rs", "bar_dir/*"]"#, Path::new("")).unwrap();
let ignore_path_set = IgnorePathSet::from_ignore_list(&config.ignore()).unwrap();
Expand Down

0 comments on commit 95cf544

Please sign in to comment.