Skip to content

Commit e7684d3

Browse files
authored
Enable overindented docs lint (#17182)
## Summary It turns out that `a.` isn't a list format supported by rustdoc. I changed the documentation to use `1.`, `2.` instead. ## Test Plan `cargo clippy`
1 parent 64e7e1a commit e7684d3

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ rayon = { version = "1.10.0" }
124124
regex = { version = "1.10.2" }
125125
rustc-hash = { version = "2.0.0" }
126126
# When updating salsa, make sure to also update the revision in `fuzz/Cargo.toml`
127-
salsa = { git = "https://github.com/salsa-rs/salsa.git", rev = "296a8c78da1b54c76ff5795eb4c1e3fe2467e9fc"}
127+
salsa = { git = "https://github.com/salsa-rs/salsa.git", rev = "296a8c78da1b54c76ff5795eb4c1e3fe2467e9fc" }
128128
schemars = { version = "0.8.16" }
129129
seahash = { version = "4.1.0" }
130130
serde = { version = "1.0.197", features = ["derive"] }
@@ -228,10 +228,6 @@ redundant_clone = "warn"
228228
debug_assert_with_mut_call = "warn"
229229
unused_peekable = "warn"
230230

231-
# Has false positives
232-
# https://github.com/rust-lang/rust-clippy/issues/14275
233-
doc_overindented_list_items = "allow"
234-
235231
# Diagnostics are not actionable: Enable once https://github.com/rust-lang/rust-clippy/issues/13774 is resolved.
236232
large_stack_arrays = "allow"
237233

crates/red_knot_python_semantic/src/symbol.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -464,11 +464,11 @@ impl<'db> SymbolAndQualifiers<'db> {
464464
///
465465
/// 1. If `self` is definitely bound, return `self` without evaluating `fallback_fn()`.
466466
/// 2. Else, evaluate `fallback_fn()`:
467-
/// a. If `self` is definitely unbound, return the result of `fallback_fn()`.
468-
/// b. Else, if `fallback` is definitely unbound, return `self`.
469-
/// c. Else, if `self` is possibly unbound and `fallback` is definitely bound,
467+
/// 1. If `self` is definitely unbound, return the result of `fallback_fn()`.
468+
/// 2. Else, if `fallback` is definitely unbound, return `self`.
469+
/// 3. Else, if `self` is possibly unbound and `fallback` is definitely bound,
470470
/// return `Symbol(<union of self-type and fallback-type>, Boundness::Bound)`
471-
/// d. Else, if `self` is possibly unbound and `fallback` is possibly unbound,
471+
/// 4. Else, if `self` is possibly unbound and `fallback` is possibly unbound,
472472
/// return `Symbol(<union of self-type and fallback-type>, Boundness::PossiblyUnbound)`
473473
#[must_use]
474474
pub(crate) fn or_fall_back_to(

0 commit comments

Comments
 (0)