diff options
Diffstat (limited to 'src/tools/clippy/tests/ui-toml/path_ends_with_ext')
-rw-r--r-- | src/tools/clippy/tests/ui-toml/path_ends_with_ext/clippy.toml | 1 | ||||
-rw-r--r-- | src/tools/clippy/tests/ui-toml/path_ends_with_ext/path_ends_with_ext.rs | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui-toml/path_ends_with_ext/clippy.toml b/src/tools/clippy/tests/ui-toml/path_ends_with_ext/clippy.toml new file mode 100644 index 000000000..40d7dfd93 --- /dev/null +++ b/src/tools/clippy/tests/ui-toml/path_ends_with_ext/clippy.toml @@ -0,0 +1 @@ +allowed-dotfiles = ["dot"] diff --git a/src/tools/clippy/tests/ui-toml/path_ends_with_ext/path_ends_with_ext.rs b/src/tools/clippy/tests/ui-toml/path_ends_with_ext/path_ends_with_ext.rs new file mode 100644 index 000000000..a34b15f4a --- /dev/null +++ b/src/tools/clippy/tests/ui-toml/path_ends_with_ext/path_ends_with_ext.rs @@ -0,0 +1,9 @@ +#![warn(clippy::path_ends_with_ext)] + +use std::path::Path; + +fn f(p: &Path) { + p.ends_with(".dot"); +} + +fn main() {} |