Skip to content

Commit

Permalink
Apply unnameable_types lint
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 6, 2025
1 parent 3c047f8 commit 69ecb94
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com

## [Unreleased]

- Expose `CargoNewConfig` and `HttpConfig`.

## [0.1.31] - 2024-12-21

- Remove dependency on `home` to restore the MSRV on Windows.
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
unexpected_cfgs = { level = "warn", check-cfg = [
] }
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_op_in_unsafe_fn = "warn"
[workspace.lints.clippy]
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ mod walk;
pub use crate::de::{Color, Frequency, RegistriesProtocol, VersionControlSoftware, When};
pub use crate::{
easy::{
BuildConfig, Config, DocConfig, EnvConfigValue, Flags, FutureIncompatReportConfig,
NetConfig, PathAndArgs, RegistriesConfigValue, RegistryConfig, StringList, TargetConfig,
TermConfig, TermProgressConfig,
BuildConfig, CargoNewConfig, Config, DocConfig, EnvConfigValue, Flags,
FutureIncompatReportConfig, HttpConfig, NetConfig, PathAndArgs, RegistriesConfigValue,
RegistryConfig, StringList, TargetConfig, TermConfig, TermProgressConfig,
},
error::Error,
resolve::{CargoVersion, ResolveOptions, RustcVersion, TargetTriple, TargetTripleRef},
Expand Down
1 change: 1 addition & 0 deletions src/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ impl ResolveOptions {
}

#[doc(hidden)] // Not public API.
#[allow(unknown_lints, unnameable_types)] // Not public API. unnameable_types is available on Rust 1.79+
#[derive(Debug, Clone)]
#[must_use]
pub struct ResolveContext {
Expand Down

0 comments on commit 69ecb94

Please sign in to comment.