mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 21:23:58 +01:00
rust: Add comment and pragma on "unused" smartlist_t type.
* FIXES part of #26245: https://bugs.torproject.org/26245
This commit is contained in:
parent
468bf58fa2
commit
d5a9b77a28
3
src/rust/external/crypto_digest.rs
vendored
3
src/rust/external/crypto_digest.rs
vendored
@ -117,6 +117,9 @@ struct common_digests_t {
|
||||
/// A `smartlist_t` is just an alias for the `#[repr(C)]` type `Stringlist`, to
|
||||
/// make it more clear that we're working with a smartlist which is owned by C.
|
||||
#[allow(non_camel_case_types)]
|
||||
// BINDGEN_GENERATED: This type isn't actually bindgen generated, but the code
|
||||
// below it which uses it is. As such, this comes up as "dead code" as well.
|
||||
#[allow(dead_code)]
|
||||
type smartlist_t = Stringlist;
|
||||
|
||||
/// All of the external functions from `src/common/crypto_digest.h`.
|
||||
|
Loading…
Reference in New Issue
Block a user