Skip to content

Commit 7c94744

Browse files
committed
Address additional review comments
1 parent 736ac3d commit 7c94744

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

clippy_config/src/types.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,11 @@ impl<'de, const REPLACEMENT_ALLOWED: bool> Deserialize<'de> for DisallowedPath<R
4040
}
4141
}
4242

43+
// `DisallowedPathEnum` is an implementation detail to enable the `Deserialize` implementation just
44+
// above. `DisallowedPathEnum` is not meant to be used outside of this file.
4345
#[derive(Debug, Deserialize, Serialize)]
4446
#[serde(untagged)]
45-
pub enum DisallowedPathEnum {
47+
enum DisallowedPathEnum {
4648
Simple(String),
4749
WithReason {
4850
path: String,

clippy_lints/src/disallowed_types.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ declare_clippy_lint! {
3333
/// # is disallowed.
3434
/// { path = "std::net::Ipv4Addr", reason = "no IPv4 allowed" },
3535
/// # Can also add a `replacement` that will be offered as a suggestion.
36-
/// { path = "std::sync::Mutex", reason = "prefer faster & simpler non-poisonable mutex", replacement = "parking_lot::Mutex" }, /// ]
36+
/// { path = "std::sync::Mutex", reason = "prefer faster & simpler non-poisonable mutex", replacement = "parking_lot::Mutex" },
37+
/// ]
3738
/// ```
3839
///
3940
/// ```rust,ignore

0 commit comments

Comments
 (0)