Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Aug 30, 2024
1 parent 92f55ad commit 8a62530
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,11 @@ impl<C: Client> Remote<C> {
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<String, anyhow::Error> {
pub async fn pr_head_hash(&self, pr_number: u64) -> Result<String, anyhow::Error> {
self.client
.as_ref()
.ok_or_else(|| anyhow!("no client attached to remote"))?
Expand All @@ -91,9 +85,8 @@ impl<C: Client> Remote<C> {

#[cfg(test)]
mod tests {
use crate::api_clients::RealClient;

use super::*;
use crate::api_clients::RealClient;

#[test]
fn parse_remote() -> Result<(), anyhow::Error> {
Expand Down

0 comments on commit 8a62530

Please sign in to comment.