Implement Default for SyncSettings in terms of SyncSettings::new

… rather than the other way around.
This commit is contained in:
Jonas Platte
2022-03-17 14:23:11 +01:00
parent c9c31fa1c2
commit baa869552f

View File

@@ -29,7 +29,7 @@ pub struct SyncSettings<'a> {
impl<'a> Default for SyncSettings<'a> {
fn default() -> Self {
Self { filter: None, timeout: Some(DEFAULT_SYNC_TIMEOUT), token: None, full_state: false }
Self::new()
}
}
@@ -37,7 +37,7 @@ impl<'a> SyncSettings<'a> {
/// Create new default sync settings.
#[must_use]
pub fn new() -> Self {
Default::default()
Self { filter: None, timeout: Some(DEFAULT_SYNC_TIMEOUT), token: None, full_state: false }
}
/// Set the sync token.