Skip to content

Commit

Permalink
refactor: clear new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Jul 16, 2020
1 parent f0e4c62 commit d918550
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/db/mysql/models.rs
Expand Up @@ -745,7 +745,7 @@ impl MysqlDb {
.bind::<Integer, _>(TOMBSTONE)
.load::<UserCollectionsResult>(&self.conn)?
.into_iter()
.map(|cr| SyncTimestamp::from_i64(cr.last_modified).and_then(|ts| Ok((cr.collection, ts))))
.map(|cr| SyncTimestamp::from_i64(cr.last_modified).map(|ts| (cr.collection, ts)))
.collect::<Result<HashMap<_, _>>>()?;
self.map_collection_names(modifieds)
}
Expand Down
7 changes: 2 additions & 5 deletions src/server/test.rs
Expand Up @@ -193,11 +193,8 @@ async fn test_endpoint(
}
}

async fn test_endpoint_with_response<T>(
method: http::Method,
path: &str,
assertions: &dyn Fn(T) -> (),
) where
async fn test_endpoint_with_response<T>(method: http::Method, path: &str, assertions: &dyn Fn(T))
where
T: DeserializeOwned,
{
let settings = get_test_settings();
Expand Down

0 comments on commit d918550

Please sign in to comment.