]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
rust: Add comment and pragma on "unused" smartlist_t type.
authorIsis Lovecruft <isis@torproject.org>
Fri, 15 Jun 2018 22:49:05 +0000 (22:49 +0000)
committerIsis Lovecruft <isis@torproject.org>
Fri, 15 Jun 2018 22:49:39 +0000 (22:49 +0000)
 * FIXES part of #26245: https://bugs.torproject.org/26245

src/rust/external/crypto_digest.rs

index bc49e6124cbfbc682a950e9e86e6dfdae9c43279..b55389ac515921116055d840f153084698a2e03c 100644 (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`.