Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Book: Use --lints instead of --lint #329

Merged
merged 1 commit into from
Dec 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/book/src/usage/lint-crate-declaration.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ A lint crate can be specified with the `--lints` option. The string is expected
<!-- region replace marker version stable -->
```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' }"
```
<!-- endregion replace marker version stable -->
4 changes: 2 additions & 2 deletions scripts/release/set-version.diff
Original file line number Diff line number Diff line change
Expand Up @@ -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 ===
Expand Down
Loading