Skip to content

Commit 824d8ea

Browse files
committed
Fix doc tests
1 parent 13d482a commit 824d8ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/utils/internal_lints/derive_deserialize_allowing_unknown.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ declare_clippy_lint! {
2525
///
2626
/// ### Example
2727
/// ```rust
28-
/// #[derive(Deserialize)]
28+
/// #[derive(serde::Deserialize)]
2929
/// pub struct DisallowedPath {
3030
/// path: String,
3131
/// reason: Option<String>,
@@ -35,7 +35,7 @@ declare_clippy_lint! {
3535
///
3636
/// Use instead:
3737
/// ```rust
38-
/// #[derive(Deserialize)]
38+
/// #[derive(serde::Deserialize)]
3939
/// #[serde(deny_unknown_fields)]
4040
/// pub struct DisallowedPath {
4141
/// path: String,

0 commit comments

Comments
 (0)