Skip to content

Commit

Permalink
Clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ismellike committed Jul 24, 2024
1 parent 3377bd3 commit c966eaf
Show file tree
Hide file tree
Showing 12 changed files with 21 additions and 21 deletions.
13 changes: 7 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/cw-orch/src/external/mod.rs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
mod admin_factory;
mod btsg_ft_factory;
mod cw721_roles;
mod cw_vesting;
mod migrator;
mod payroll_factory;
mod token_swap;
mod tokenfactory_issuer;
mod btsg_ft_factory;

pub use admin_factory::DaoExternalAdminFactory;
pub use btsg_ft_factory::DaoExternalFantokenFactory;
pub use cw721_roles::DaoExternalCw721Roles;
pub use cw_vesting::DaoExternalCwVesting;
pub use migrator::DaoExternalMigrator;
pub use payroll_factory::DaoExternalPayrollFactory;
pub use token_swap::DaoExternalTokenSwap;
pub use tokenfactory_issuer::DaoExternalTokenfactoryIssuer;
pub use btsg_ft_factory::DaoExternalFantokenFactory;
4 changes: 2 additions & 2 deletions scripts/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#[allow(clippy::collapsible_if)]
#[allow(dead_code)]
fn main() {}

mod dao;
Expand All @@ -7,4 +7,4 @@ pub use dao::*;
pub use external::*;

#[cfg(test)]
mod tests;
mod tests;
2 changes: 1 addition & 1 deletion scripts/src/tests/external/admin_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
fn test_admin() -> anyhow::Result<()> {
let mock = MockBech32::new(PREFIX);
let admin = mock.addr_make(ADMIN);
let app = AdminFactorySuite::deploy_on(mock.clone(), admin.clone())?;
let _app = AdminFactorySuite::deploy_on(mock.clone(), admin.clone())?;
mock.next_block().unwrap();
Ok(())
}
2 changes: 1 addition & 1 deletion scripts/src/tests/external/btsg_ft_factory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
fn test_admin() -> anyhow::Result<()> {
let mock = MockBech32::new(PREFIX);
let admin = mock.addr_make(ADMIN);
let app = AdminFactorySuite::deploy_on(mock.clone(), admin.clone())?;
let _app = AdminFactorySuite::deploy_on(mock.clone(), admin.clone())?;
mock.next_block().unwrap();
Ok(())
}
2 changes: 1 addition & 1 deletion scripts/src/tests/external/cw721_roles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
fn test_cw721_roles() -> anyhow::Result<()> {
let mock = MockBech32::new(PREFIX);
let admin = mock.addr_make(ADMIN);
let app = Cw721RolesSuite::deploy_on(mock.clone(), admin.clone())?;
let _app = Cw721RolesSuite::deploy_on(mock.clone(), admin.clone())?;
mock.next_block().unwrap();
Ok(())
}
2 changes: 1 addition & 1 deletion scripts/src/tests/external/dao_migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
fn test_dao_migration() -> anyhow::Result<()> {
let mock = MockBech32::new(PREFIX);
let admin = mock.addr_make(ADMIN);
let app = DaoMigrationSuite::deploy_on(mock.clone(), admin.clone())?;
let _app = DaoMigrationSuite::deploy_on(mock.clone(), admin.clone())?;
mock.next_block().unwrap();
Ok(())
}
4 changes: 2 additions & 2 deletions scripts/src/tests/external/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pub mod admin_factory;
pub mod btsg_ft_factory;
pub mod cw721_roles;
pub mod dao_migration;
pub mod payroll;
pub mod token_swap;
pub mod tokenfactory_issuer;
pub mod vesting;
pub mod dao_migration;
pub mod btsg_ft_factory;
2 changes: 1 addition & 1 deletion scripts/src/tests/external/payroll.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
fn test_payroll() -> anyhow::Result<()> {
let mock = MockBech32::new(PREFIX);
let admin = mock.addr_make(ADMIN);
let app = PayrollSuite::deploy_on(mock.clone(), admin.clone())?;
let _app = PayrollSuite::deploy_on(mock.clone(), admin.clone())?;
mock.next_block().unwrap();
Ok(())
}
2 changes: 1 addition & 1 deletion scripts/src/tests/external/tokenfactory_issuer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
fn test_tokenfactory() -> anyhow::Result<()> {
let mock = MockBech32::new(PREFIX);
let admin = mock.addr_make(ADMIN);
let app = TokenFactorySuite::deploy_on(mock.clone(), admin.clone())?;
let _app = TokenFactorySuite::deploy_on(mock.clone(), admin.clone())?;

mock.next_block().unwrap();
Ok(())
Expand Down
3 changes: 1 addition & 2 deletions scripts/src/tests/external/vesting.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use cw_orch::{anyhow, prelude::*};

use crate::{
external::TokenFactorySuite,
tests::{ADMIN, PREFIX},
VestingSuite,
};
Expand All @@ -10,7 +9,7 @@ use crate::{
fn test_vesting() -> anyhow::Result<()> {
let mock = MockBech32::new(PREFIX);
let admin = mock.addr_make(ADMIN);
let app = VestingSuite::deploy_on(mock.clone(), admin.clone())?;
let _app = VestingSuite::deploy_on(mock.clone(), admin.clone())?;
mock.next_block().unwrap();
Ok(())
}
2 changes: 1 addition & 1 deletion scripts/src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod external;
mod deploy;
mod external;

pub(crate) const PREFIX: &str = "mock";
pub(crate) const ADMIN: &str = "admin";
Expand Down

0 comments on commit c966eaf

Please sign in to comment.