Skip to content
Snippets Groups Projects
Commit eecd664c authored by Torsten Flammiger's avatar Torsten Flammiger
Browse files

Reformat code

parent 7f2445be
No related branches found
No related tags found
No related merge requests found
...@@ -28,17 +28,17 @@ pub fn register_appservice(&self, yaml: serde_yaml::Value) -> Result<()> { ...@@ -28,17 +28,17 @@ pub fn register_appservice(&self, yaml: serde_yaml::Value) -> Result<()> {
} }
/// Remove an appservice registration /// Remove an appservice registration
/// ///
/// # Arguments /// # Arguments
/// ///
/// * `service_name` - the name you send to register the service previously /// * `service_name` - the name you send to register the service previously
pub fn unregister_appservice(&self, service_name: &str) -> Result<()> { pub fn unregister_appservice(&self, service_name: &str) -> Result<()> {
self.id_appserviceregistrations self.id_appserviceregistrations
.remove(service_name.as_bytes())?; .remove(service_name.as_bytes())?;
self.cached_registrations. self.cached_registrations
write(). .write()
unwrap(). .unwrap()
remove(service_name); .remove(service_name);
Ok(()) Ok(())
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment