mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
fix clippy lints
This commit is contained in:
parent
9e6be07e24
commit
1b55e5b265
15 changed files with 40 additions and 41 deletions
|
@ -38,8 +38,8 @@ impl Default for ServerConfig {
|
|||
impl ServerConfig {
|
||||
pub fn from_args(snapshot_days: i64, snapshot_versions: u32) -> anyhow::Result<ServerConfig> {
|
||||
Ok(ServerConfig {
|
||||
snapshot_days: snapshot_days,
|
||||
snapshot_versions: snapshot_versions,
|
||||
snapshot_days,
|
||||
snapshot_versions,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -1021,7 +1021,7 @@ mod test {
|
|||
let client = txn.get_client(client_key)?.unwrap();
|
||||
assert_eq!(
|
||||
get_snapshot(txn, &ServerConfig::default(), client_key, client)?,
|
||||
Some((snapshot_version_id, data.clone()))
|
||||
Some((snapshot_version_id, data))
|
||||
);
|
||||
|
||||
Ok(())
|
||||
|
|
|
@ -10,7 +10,7 @@ pub use inmemory::InMemoryStorage;
|
|||
mod sqlite;
|
||||
pub use self::sqlite::SqliteStorage;
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
pub struct Client {
|
||||
/// The latest version for this client (may be the nil version)
|
||||
pub latest_version_id: Uuid,
|
||||
|
@ -18,7 +18,7 @@ pub struct Client {
|
|||
pub snapshot: Option<Snapshot>,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
pub struct Snapshot {
|
||||
/// ID of the version at which this snapshot was made
|
||||
pub version_id: Uuid,
|
||||
|
@ -30,7 +30,7 @@ pub struct Snapshot {
|
|||
pub versions_since: u32,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Debug)]
|
||||
#[derive(Clone, PartialEq, Eq, Debug)]
|
||||
pub struct Version {
|
||||
pub version_id: Uuid,
|
||||
pub parent_version_id: Uuid,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue