mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Give an explanation for exempting implicit_hasher
This commit is contained in:
parent
a8e3827e98
commit
8dc00d45c1
@ -106,7 +106,8 @@ mod types;
|
|||||||
///
|
///
|
||||||
/// * `print_warnings` - whether or not to print backwards-compatibility
|
/// * `print_warnings` - whether or not to print backwards-compatibility
|
||||||
/// warnings and such
|
/// warnings and such
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(implicit_hasher))] // exempted
|
// While unfortunate, generalising this over different hashers would be a large project
|
||||||
|
#[cfg_attr(feature = "cargo-clippy", allow(implicit_hasher))]
|
||||||
pub fn resolve(
|
pub fn resolve(
|
||||||
summaries: &[(Summary, Method)],
|
summaries: &[(Summary, Method)],
|
||||||
replacements: &[(PackageIdSpec, Dependency)],
|
replacements: &[(PackageIdSpec, Dependency)],
|
||||||
|
@ -133,7 +133,8 @@ fn resolve_with_registry<'cfg>(
|
|||||||
///
|
///
|
||||||
/// The previous resolve normally comes from a lockfile. This function does not
|
/// The previous resolve normally comes from a lockfile. This function does not
|
||||||
/// read or write lockfiles from the filesystem.
|
/// read or write lockfiles from the filesystem.
|
||||||
#[cfg_attr(feature = "cargo-clippy", allow(implicit_hasher))] // exempted
|
// While unfortunate, generalising this over different hashers would be a large project
|
||||||
|
#[cfg_attr(feature = "cargo-clippy", allow(implicit_hasher))]
|
||||||
pub fn resolve_with_previous<'a, 'cfg>(
|
pub fn resolve_with_previous<'a, 'cfg>(
|
||||||
registry: &mut PackageRegistry<'cfg>,
|
registry: &mut PackageRegistry<'cfg>,
|
||||||
ws: &Workspace<'cfg>,
|
ws: &Workspace<'cfg>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user