diff --git a/syncstorage/src/db/transaction.rs b/syncstorage/src/db/transaction.rs index ce4619064d..9763d0e680 100644 --- a/syncstorage/src/db/transaction.rs +++ b/syncstorage/src/db/transaction.rs @@ -135,8 +135,7 @@ impl DbTransactionPool { self.collection.clone(), self.bso_opt.clone(), ) - .await - .map_err(ApiError::from)?; + .await?; if let Some(precondition) = &self.precondition.opt { let status = match precondition { diff --git a/syncstorage/src/tokenserver/auth/oauth.rs b/syncstorage/src/tokenserver/auth/oauth.rs index 49868a2eac..78f2e33514 100644 --- a/syncstorage/src/tokenserver/auth/oauth.rs +++ b/syncstorage/src/tokenserver/auth/oauth.rs @@ -138,6 +138,5 @@ impl VerifyToken for RemoteVerifier { ..TokenserverError::resource_unavailable() })? .map_err(|_| TokenserverError::resource_unavailable())? - .map_err(Into::into) } }