From 05d11426a8e60fa060733eb8ae7843bc2ae9725c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 10 Jun 2024 15:28:36 +0200 Subject: apply many clippy issue --- base/src/federation.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'base/src/federation.rs') diff --git a/base/src/federation.rs b/base/src/federation.rs index 75c16e7..662a7ac 100644 --- a/base/src/federation.rs +++ b/base/src/federation.rs @@ -32,10 +32,7 @@ impl Federation { } pub fn get_instance(&self, host: &String) -> anyhow::Result<&Instance> { - Ok(self - .instances - .get(host) - .ok_or(anyhow!("unknown instance"))?) + self.instances.get(host).ok_or(anyhow!("unknown instance")) } pub async fn get_session(&self, host: &String) -> anyhow::Result> { -- cgit v1.2.3-70-g09d2