apply clippy suggestions
This commit is contained in:
parent
f41c2eb66b
commit
958466818b
12 changed files with 38 additions and 41 deletions
|
@ -13,6 +13,6 @@ pub fn to_u64(hash_id: &str) -> Result<u64, &str> {
|
|||
let ids = HARSH
|
||||
.decode(hash_id)
|
||||
.map_err(|_e| "Failed to decode hash ID")?;
|
||||
let id = ids.get(0).ok_or("No ID found in hash ID")?;
|
||||
let id = ids.first().ok_or("No ID found in hash ID")?;
|
||||
Ok(*id)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue