Skip to content

Commit df04fb7

Browse files
committed
chore: fix clippy issue
Signed-off-by: aeryz <[email protected]>
1 parent 4a8c36a commit df04fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cosmwasm/cw20-token-minter/src/contract.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ pub fn query(deps: Deps, env: Env, msg: QueryMsg) -> Result<Binary, Error> {
286286

287287
let (name, symbol, decimals) = match denom_metadata {
288288
Ok(DenomMetadataResponse { metadata, .. }) => {
289-
let decimals = match metadata.denom_units.get(0) {
289+
let decimals = match metadata.denom_units.first() {
290290
Some(unit) => unit.exponent.try_into().unwrap_or(0),
291291
None => 0,
292292
};

0 commit comments

Comments
 (0)