uv
uv copied to clipboard
Add `fs_err` to `disallowed_method` in clippy.toml
Summary
Resolve #1916
Thanks for contributing! It looks like this isn't working e.g. this is unflagged
https://github.com/astral-sh/uv/blob/11ed4f7183cc25a00f23e86bd264d4055645eed2/crates/install-wheel-rs/src/wheel.rs#L398
I think it has to be a list of fully-qualified methods, rather than a module. So we'd have to like... enumerate every method in fs
, to enforce this? Or is there a more conventional fix for this?
@zanieb Thanks! I fixed my misconfiguration.
@charliermarsh Unfortunately, there seems to be no convenient way to do this like std::fs::*
, so I enumerated all the methods in std::fs
that can be replaced in fs_err
.