Skip to content

Commit f5606a5

Browse files
authored
Upgrade checkout action (#281)
1 parent a9babcf commit f5606a5

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/checks.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,35 @@ jobs:
66
lint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v5
1010
- uses: dtolnay/rust-toolchain@stable
1111
- run: cargo fmt -- --check
1212
- run: cargo clippy --all-features --all-targets -- -D warnings
1313

1414
build-default-features:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v5
1818
- uses: dtolnay/rust-toolchain@stable
19-
- run: cargo build
19+
- run: cargo build --locked
2020

2121
build-all-features:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@v5
2525
- uses: dtolnay/rust-toolchain@stable
26-
- run: cargo build --all-features
26+
- run: cargo build --locked --all-features
2727

2828
test-default-features:
2929
runs-on: ubuntu-latest
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@v5
3232
- uses: dtolnay/rust-toolchain@stable
33-
- run: cargo test
33+
- run: cargo test --locked
3434

3535
test-all-features:
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v5
3939
- uses: dtolnay/rust-toolchain@stable
40-
- run: cargo test --all-features
40+
- run: cargo test --locked --all-features

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)