From 8a62530aec62d1e8b3ebe8953bd105edb6807ad2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 30 Aug 2024 16:36:44 +0200 Subject: [PATCH] Format --- src/remote.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/remote.rs b/src/remote.rs index 7c0c30c..9a40915 100644 --- a/src/remote.rs +++ b/src/remote.rs @@ -62,17 +62,11 @@ impl Remote { self.client .as_ref() .ok_or_else(|| anyhow!("no client attached to remote"))? - .compare( - &self.owner, - &self.repository, - &self.original, - base_commit, - head_commit, - ) + .compare(&self.owner, &self.repository, &self.original, base_commit, head_commit) .await } - pub async fn pr_head_hash(&self, pr_number: u64) -> Result { + pub async fn pr_head_hash(&self, pr_number: u64) -> Result { self.client .as_ref() .ok_or_else(|| anyhow!("no client attached to remote"))? @@ -91,9 +85,8 @@ impl Remote { #[cfg(test)] mod tests { - use crate::api_clients::RealClient; - use super::*; + use crate::api_clients::RealClient; #[test] fn parse_remote() -> Result<(), anyhow::Error> {