Skip to content

Commit

Permalink
Run clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
rylev committed Feb 25, 2022
1 parent 970bcb1 commit fcf8d18
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion sdk/data_cosmos/src/operations/create_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl CreateCollectionBuilder {
)
.await?;

Ok(CreateCollectionResponse::try_from(response).await?)
CreateCollectionResponse::try_from(response).await
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_cosmos/src/operations/create_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ impl<D: Serialize + CosmosEntity + Send + 'static> CreateDocumentBuilder<D> {
)
.await?;

Ok(CreateDocumentResponse::try_from(response).await?)
CreateDocumentResponse::try_from(response).await
})
}
}
Expand Down
4 changes: 2 additions & 2 deletions sdk/data_cosmos/src/operations/create_permission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl CreatePermissionBuilder {
}

let request_body = RequestBody {
id: &self.client.permission_name(),
id: self.client.permission_name(),
permission_mode: self.permission_mode.kind(),
resource: self.permission_mode.resource(),
};
Expand All @@ -67,7 +67,7 @@ impl CreatePermissionBuilder {
)
.await?;

Ok(PermissionResponse::try_from(response).await?)
PermissionResponse::try_from(response).await
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_cosmos/src/operations/create_user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl CreateUserBuilder {
)
.await?;

Ok(UserResponse::try_from(response).await?)
UserResponse::try_from(response).await
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_cosmos/src/operations/delete_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl DeleteCollectionBuilder {
)
.await?;

Ok(DeleteCollectionResponse::try_from(response).await?)
DeleteCollectionResponse::try_from(response).await
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_cosmos/src/operations/delete_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl DeleteDatabaseBuilder {
)
.await?;

Ok(DeleteDatabaseResponse::try_from(response).await?)
DeleteDatabaseResponse::try_from(response).await
})
}
}
Expand Down
2 changes: 1 addition & 1 deletion sdk/data_cosmos/src/operations/delete_document.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl DeleteDocumentBuilder {
azure_core::headers::add_mandatory_header2(&self.allow_tentative_writes, &mut request)?;

crate::cosmos_entity::add_as_partition_key_header_serialized2(
&self.client.partition_key_serialized(),
self.client.partition_key_serialized(),
&mut request,
);

Expand Down
2 changes: 1 addition & 1 deletion sdk/data_cosmos/src/operations/delete_permission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl DeletePermissionBuilder {
)
.await?;

Ok(DeletePermissionResponse::try_from(response).await?)
DeletePermissionResponse::try_from(response).await
})
}
}
Expand Down

0 comments on commit fcf8d18

Please sign in to comment.