Skip to content

Commit 2738d82

Browse files
committed
Add docs to allow attributes
1 parent 5beabbb commit 2738d82

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/std/src/math/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ mod tests {
8080
{
8181
}
8282

83-
#[allow(dead_code)]
83+
#[allow(dead_code)] // This is used to statically ensure all the integers have a shared set of traits
8484
trait SignedImpl<'a>: IntImpl<'a> + Neg<Output = Self> {}
8585

8686
impl AllImpl<'_> for Uint64 {}

packages/std/src/query/query_response.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ use serde::de::DeserializeOwned;
1515
/// - multi-test/cw-sdk: create a default instance and mutate the fields
1616
///
1717
/// This trait is crate-internal and can change any time.
18+
#[allow(dead_code)] // This is used to statically ensure all the types have a shared set of traits
1819
pub(crate) trait QueryResponseType: DeserializeOwned + Debug + PartialEq + Clone {}

0 commit comments

Comments
 (0)