Skip to content

Commit

Permalink
⚡️ 删除多余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
phidiaLam committed Nov 19, 2024
1 parent 83c3279 commit 2910e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/bitmap-convert/src/base70.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ impl BitmapBase70Conv for Bitmap<256> {
for c in string.chars() {
let index = CHAR_TO_INDEX
.get(c as usize)
.ok_or(Error::NotConvertBitmap(string.clone()))?;
match *index {
.copied();
match index.flatten() {
None => return Err(Error::NotConvertBitmap(string.clone())),
Some(i) => bytes.push(i),
}
Expand Down

0 comments on commit 2910e21

Please sign in to comment.