Cargo fmt.

This commit is contained in:
Paul Makles
2021-01-19 13:07:11 +00:00
parent 8bb694a1c8
commit 3a63d502d9
4 changed files with 12 additions and 11 deletions

View File

@@ -112,10 +112,7 @@ pub fn prehandle_hook(notification: &ClientboundNotification) {
pub fn posthandle_hook(notification: &ClientboundNotification) {
match &notification {
ClientboundNotification::ChannelDelete { id } => {
get_hive()
.hive
.drop_topic(&id)
.ok();
get_hive().hive.drop_topic(&id).ok();
}
ClientboundNotification::UserRelationship { id, user, status } => {
if status == &RelationshipStatus::None {
@@ -123,7 +120,7 @@ pub fn posthandle_hook(notification: &ClientboundNotification) {
.hive
.unsubscribe(&id.to_string(), &user.to_string())
.ok();
}
}
}
_ => {}
}