refactor: chore iced

This commit is contained in:
b1n
2024-07-16 12:05:49 +08:00
parent 3cb0cc7039
commit 11dd2ebfd6
6 changed files with 90 additions and 91 deletions

View File

@@ -73,7 +73,7 @@ pub fn replace(
let position = memmem::find_iter(bin, holder)
.next()
.ok_or(anyhow!("Not found {}", String::from_utf8_lossy(holder)))?;
.ok_or(anyhow!("Not found {}.", String::from_utf8_lossy(holder)))?;
let mut random: Vec<u8> = iter::repeat(b'0')
.take(max_len - replace_by.len())
.collect();