Merge pull request #1630 from gwenn/clippy

Fix clippy warnings
This commit is contained in:
gwenn 2025-01-31 19:03:29 +01:00 committed by GitHub
commit 2701e1f7d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 17 deletions

View File

@ -33,7 +33,6 @@ use sealed::Sealed;
/// ///
/// - For small lists of parameters up to 16 items, they may alternatively be /// - For small lists of parameters up to 16 items, they may alternatively be
/// passed as a tuple, as in `thing.query((1, "foo"))`. /// passed as a tuple, as in `thing.query((1, "foo"))`.
///
/// This is somewhat inconvenient for a single item, since you need a /// This is somewhat inconvenient for a single item, since you need a
/// weird-looking trailing comma: `thing.query(("example",))`. That case is /// weird-looking trailing comma: `thing.query(("example",))`. That case is
/// perhaps more cleanly expressed as `thing.query(["example"])`. /// perhaps more cleanly expressed as `thing.query(["example"])`.
@ -50,7 +49,6 @@ use sealed::Sealed;
/// ///
/// - a reference to an array of references, as in `thing.query(&["foo", /// - a reference to an array of references, as in `thing.query(&["foo",
/// "bar", "baz"])` or `thing.query(&[&1i32, &2, &3])`. /// "bar", "baz"])` or `thing.query(&[&1i32, &2, &3])`.
///
/// (Note: in this case we don't implement this for slices for coherence /// (Note: in this case we don't implement this for slices for coherence
/// reasons, so it really is only for the "reference to array" types — /// reasons, so it really is only for the "reference to array" types —
/// hence why the number of parameters must be <= 32, or you need to /// hence why the number of parameters must be <= 32, or you need to