mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-29 16:24:10 +00:00
6eb00a41a0
It only runs on nightly, but the next commits will show why this is useful.
14 lines
473 B
Diff
14 lines
473 B
Diff
--- a/src/tools/rustfmt/src/ignore_path.rs
|
|
+++ b/src/tools/rustfmt/src/ignore_path.rs
|
|
@@ -37,9 +37,9 @@
|
|
#[nightly_only_test]
|
|
#[test]
|
|
fn test_ignore_path_set() {
|
|
- use std::path::{Path, PathBuf};
|
|
use crate::config::{Config, FileName};
|
|
use crate::ignore_path::IgnorePathSet;
|
|
+ use std::path::{Path, PathBuf};
|
|
|
|
let config =
|
|
Config::from_toml(r#"ignore = ["foo.rs", "bar_dir/*"]"#, Path::new("")).unwrap();
|