diff --git a/src/main.rs b/src/main.rs index ac87159..218ac2f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, };