Skip to content

Commit

Permalink
fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Dec 24, 2024
1 parent bd28a2e commit 21edc67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/external/cw-payroll-factory/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pub struct TokenIndexes<'a> {
pub recipient: MultiIndex<'a, String, VestingContract, String>,
}

impl<'a> IndexList<VestingContract> for TokenIndexes<'a> {
fn get_indexes(&'_ self) -> Box<dyn Iterator<Item = &'_ dyn Index<VestingContract>> + '_> {
impl IndexList<VestingContract> for TokenIndexes<'_> {
fn get_indexes(&self) -> Box<dyn Iterator<Item = &dyn Index<VestingContract>> + '_> {
let v: Vec<&dyn Index<VestingContract>> = vec![&self.instantiator, &self.recipient];
Box::new(v.into_iter())
}
Expand Down
2 changes: 1 addition & 1 deletion contracts/voting/dao-voting-cw721-staked/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ pub fn register_staked_nft(
storage: &mut dyn Storage,
height: u64,
staker: &Addr,
token_id: &String,
token_id: &str,
) -> StdResult<()> {
let add_one = |prev: Option<Uint128>| -> StdResult<Uint128> {
prev.unwrap_or_default()
Expand Down
2 changes: 1 addition & 1 deletion packages/cw-snapshot-vector-map/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct LoadedItem<V> {
pub expiration: Option<u64>,
}

impl<'a, K, V> SnapshotVectorMap<'a, K, V> {
impl<K, V> SnapshotVectorMap<'_, K, V> {
/// Creates a new [`SnapshotVectorMap`] with the given storage keys.
///
/// Example:
Expand Down

0 comments on commit 21edc67

Please sign in to comment.