Mercurial > public > mercurial-scm > hg
comparison rust/hg-cpython/src/ref_sharing.rs @ 52291:f90796d33aa0
rust: fix clippy lints
These were highlighted by the latest version of clippy (1.82.0).
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Tue, 29 Oct 2024 11:35:01 +0100 |
parents | 6b7aef44274b |
children | 15011324a80b |
comparison
equal
deleted
inserted
replaced
52290:a3fa37bdb7ec | 52291:f90796d33aa0 |
---|---|
29 /// | 29 /// |
30 /// # Parameters | 30 /// # Parameters |
31 /// | 31 /// |
32 /// * `$name` is the identifier to give to the resulting Rust struct. | 32 /// * `$name` is the identifier to give to the resulting Rust struct. |
33 /// * `$leaked` corresponds to `UnsafePyLeaked` in the matching `@shared data` | 33 /// * `$leaked` corresponds to `UnsafePyLeaked` in the matching `@shared data` |
34 /// declaration. | 34 /// declaration. |
35 /// * `$iterator_type` is the type of the Rust iterator. | 35 /// * `$iterator_type` is the type of the Rust iterator. |
36 /// * `$success_func` is a function for processing the Rust `(key, value)` | 36 /// * `$success_func` is a function for processing the Rust `(key, value)` |
37 /// tuple on iteration success, turning it into something Python understands. | 37 /// tuple on iteration success, turning it into something Python understands. |
38 /// * `$success_func` is the return type of `$success_func` | 38 /// * `$success_func` is the return type of `$success_func` |
39 /// | 39 /// |
40 /// # Safety | 40 /// # Safety |
41 /// | 41 /// |
42 /// `$success_func` may take a reference, but it's lifetime may be cheated. | 42 /// `$success_func` may take a reference, but it's lifetime may be cheated. |