rust: Add comment and pragma on "unused" smartlist_t type.

* FIXES part of #26245: https://bugs.torproject.org/26245
This commit is contained in:
Isis Lovecruft 2018-06-15 22:49:05 +00:00
parent 468bf58fa2
commit d5a9b77a28
No known key found for this signature in database
GPG Key ID: B8938BC5E86C046F

View File

@ -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`.