refactor: derive Clone on iox_time::SystemProvider

This lets us use a SystemProvider without wrapping it in an Arc to
satisfy a Clone bound.

There's no reason to be wrapping this in an Arc and maintaining
refcounts for a stateless trait impl struct that doesn't have any data
to reference count or drop.
pull/24376/head
Dom Dwyer 2023-02-20 20:31:35 +01:00
parent 429e1c5319
commit a2679aee9f
No known key found for this signature in database
GPG Key ID: E4C40DBD9157879A
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ pub trait TimeProvider: std::fmt::Debug + Send + Sync + 'static {
}
/// A [`TimeProvider`] that uses [`Utc::now`] as a clock source
#[derive(Debug, Default)]
#[derive(Debug, Default, Clone)]
pub struct SystemProvider {}
impl SystemProvider {