mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 03:03:40 +00:00
baaddf2b84
Handle relative paths in module_files lints The problem being that when clippy is run in the project's directory `lp` would be a relative path, this wasn't caught by the tests as there `lp` is an absolute path. Being a relative path it did not start with `trim_src_path` and so was ignored Also allowed the removal of some `.to_os_string`/`.to_owned`s changelog: Fixes [`self_named_module_files`] and [`mod_module_files`] not linting Fixes #8123, cc `@DevinR528` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |