Skip to content

Commit 752c830

Browse files
committed
Fix deprecation warnings
1 parent 22a8bd1 commit 752c830

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/std/src/query/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// needed because the derive macros on QueryRequest use the deprecated `Stargate` variant
2+
#![allow(deprecated)]
3+
14
use schemars::JsonSchema;
25
use serde::{Deserialize, Serialize};
36

packages/std/src/testing/mock.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ impl<C: CustomQuery + DeserializeOwned> MockQuerier<C> {
602602
}
603603
QueryRequest::Wasm(msg) => self.wasm.query(msg),
604604
#[cfg(feature = "stargate")]
605+
#[allow(deprecated)]
605606
QueryRequest::Stargate { .. } => SystemResult::Err(SystemError::UnsupportedRequest {
606607
kind: "Stargate".to_string(),
607608
}),

0 commit comments

Comments
 (0)