/ clippy.toml
clippy.toml
1 disallowed-types = [ 2 { path = "futures::channel::oneshot::Sender", reason = "Use tor_async_utils::oneshot to avoid bug with select macro" }, 3 { path = "futures::channel::oneshot::Receiver", reason = "Use tor_async_utils::oneshot to avoid bug with select macro" }, 4 ] 5 disallowed-methods = [ 6 { path = "rand::Rng::gen_range", reason = "Prefer tor_basic_utils::RngExt::gen_range_checked to avoid uncontrolled panics, or gen_range_infallible if applicable" }, 7 { path = "futures::channel::oneshot::channel", reason = "Use tor_async_utils::oneshot to avoid bug with select macro" }, 8 { path = "std::path::Path::display", reason = "See tor_basic_utils::PathExt::display_lossy" }, 9 # { path = "std::time::SystemTime::now", reason = "prefer using SleepProvider::wallclock instead when possible" }, 10 { path = "std::path::Path::exists", reason = "Prefer using std::Path::try_exists or std::fs::exists" }, 11 ]