From 9b6eaddcb7cbfc3e1be82ac30daac61a77fb285e Mon Sep 17 00:00:00 2001 From: xFrednet Date: Sun, 17 Dec 2023 23:09:45 +0100 Subject: [PATCH] Book: Use `--lints` instead of `--lint` --- docs/book/src/usage/lint-crate-declaration.md | 6 +++--- scripts/release/set-version.diff | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/book/src/usage/lint-crate-declaration.md b/docs/book/src/usage/lint-crate-declaration.md index 1860ff16..c200f341 100644 --- a/docs/book/src/usage/lint-crate-declaration.md +++ b/docs/book/src/usage/lint-crate-declaration.md @@ -31,12 +31,12 @@ A lint crate can be specified with the `--lints` option. The string is expected ```sh # An external crate from a registry -cargo marker --lint "marker_lints = '0.4.3'" +cargo marker --lints "marker_lints = '0.4.3'" # An external crate from git -cargo marker --lint "marker_lints = { git = 'https://github.com/rust-marker/marker' }" +cargo marker --lints "marker_lints = { git = 'https://github.com/rust-marker/marker' }" # A local crate as a path -cargo marker --lint "marker_lints = { path = './marker_lints' }" +cargo marker --lints "marker_lints = { path = './marker_lints' }" ``` diff --git a/scripts/release/set-version.diff b/scripts/release/set-version.diff index 040a1962..4025b2b8 100644 --- a/scripts/release/set-version.diff +++ b/scripts/release/set-version.diff @@ -160,8 +160,8 @@ +marker_lints = "0.1.0" # An external crate from a registry --cargo marker --lint "marker_lints = 'X.Y.Z'" -+cargo marker --lint "marker_lints = '0.1.0'" +-cargo marker --lints "marker_lints = 'X.Y.Z'" ++cargo marker --lints "marker_lints = '0.1.0'" === docs/internal/release.md ===