refactor: remove useless clone-on-write
This commit is contained in:
parent
fae0dae758
commit
fae0e06123
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue