Reformat code

This commit is contained in:
Torsten Flammiger committed 2022-01-13 12:26:23 +01:00
1 parent 7f2445be6c
commit eecd664c43
1 file changed
+6 -6
+6 -6
View File
@@ -28,17 +28,17 @@ pub fn register_appservice(&self, yaml: serde_yaml::Value) -> Result<()> {
}
/// Remove an appservice registration
///
///
/// # Arguments
///
///
/// * `service_name` - the name you send to register the service previously
pub fn unregister_appservice(&self, service_name: &str) -> Result<()> {
self.id_appserviceregistrations
.remove(service_name.as_bytes())?;
self.cached_registrations.
write().
unwrap().
remove(service_name);
self.cached_registrations
.write()
.unwrap()
.remove(service_name);
Ok(())
}