Skip to content

Commit 63d4eaf

Browse files
committed
Fixed clippy warnings.
1 parent 464434d commit 63d4eaf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/app.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ where
429429

430430
/// Simple helper so we get access to all the QuerierWrapper helpers,
431431
/// e.g. wrap().query_wasm_smart, query_all_balances, ...
432-
pub fn wrap(&self) -> QuerierWrapper<CustomT::QueryT> {
432+
pub fn wrap(&self) -> QuerierWrapper<'_, CustomT::QueryT> {
433433
QuerierWrapper::new(self)
434434
}
435435

@@ -728,6 +728,7 @@ where
728728
}
729729
}
730730

731+
/// Router for mocking purposes.
731732
pub struct MockRouter<ExecC, QueryC>(PhantomData<(ExecC, QueryC)>);
732733

733734
impl Default for MockRouter<Empty, Empty> {
@@ -737,6 +738,7 @@ impl Default for MockRouter<Empty, Empty> {
737738
}
738739

739740
impl<ExecC, QueryC> MockRouter<ExecC, QueryC> {
741+
/// Creates a new [MockRouter].
740742
pub fn new() -> Self
741743
where
742744
QueryC: CustomQuery,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub use crate::addresses::{
189189
};
190190
pub use crate::api::{MockApiBech32, MockApiBech32m};
191191
pub use crate::app::{
192-
custom_app, next_block, no_init, App, BasicApp, CosmosRouter, Router, SudoMsg,
192+
custom_app, next_block, no_init, App, BasicApp, CosmosRouter, MockRouter, Router, SudoMsg,
193193
};
194194
pub use crate::app_builder::{AppBuilder, BasicAppBuilder};
195195
pub use crate::bank::{Bank, BankKeeper, BankSudo};

0 commit comments

Comments
 (0)