Run cargo fmt.

This commit is contained in:
Paul Makles committed 2021-01-18 20:26:26 +00:00
1 parent bd789b6825
commit a1a921bbcb
19 files changed
+141 -142

No files matched your search

+1 -4
View File
@@ -31,10 +31,7 @@ pub async fn req(user: User, username: String) -> Result<JsonValue> {
with: "user",
})?;
match get_relationship(
&user,
&target_id,
) {
match get_relationship(&user, &target_id) {
RelationshipStatus::User => return Err(Error::NoEffect),
RelationshipStatus::Friend => return Err(Error::AlreadyFriends),
RelationshipStatus::Outgoing => return Err(Error::AlreadySentRequest),