refactor: remove useless clone-on-write

This commit is contained in:
Anna 2023-08-31 20:18:09 -04:00
parent fae0dae758
commit fae0e06123
Signed by: anna
GPG Key ID: D0943384CD9F87D1
1 changed files with 2 additions and 2 deletions

View File

@ -508,11 +508,11 @@ fn main() -> Result<()> {
std::str::from_utf8_unchecked(&random_hex)
};
Some(Cow::from(random))
Some(random)
}
Method::Counter => {
let count = counter.fetch_add(1, Ordering::Relaxed) + 1;
Some(Cow::from(count_buffer.format(count)))
Some(count_buffer.format(count))
}
_ => None,
};