diff options
author | Pi-Cla <pirateclip@protonmail.com> | 2024-08-11 09:33:06 +0200 |
---|---|---|
committer | Pi-Cla <pirateclip@protonmail.com> | 2024-08-11 09:33:06 +0200 |
commit | a979a34b783b4c3a966404c8c7c57aed461fdf91 (patch) | |
tree | fc4bf9fab8a374a400083c5bf67b5a1e872bbdd8 /src/user.rs | |
parent | Update Cargo.lock to openssl 0.10.66 (diff) | |
download | forgejo-cli-a979a34b783b4c3a966404c8c7c57aed461fdf91.tar.xz forgejo-cli-a979a34b783b4c3a966404c8c7c57aed461fdf91.zip |
Clippy Fixes
There are still some clippy warnings left, but this covers most of them
Diffstat (limited to 'src/user.rs')
-rw-r--r-- | src/user.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/user.rs b/src/user.rs index d38d8b5..6f7de40 100644 --- a/src/user.rs +++ b/src/user.rs @@ -685,12 +685,12 @@ async fn list_activity(api: &Forgejo, user: Option<&str>) -> eyre::Result<()> { .as_deref() .ok_or_eyre("parent repo does not have full name")?; println!("{bold}{actor_name}{reset} forked repository {bold}{yellow}{parent_full_name}{reset} to {bold}{yellow}{full_name}{reset}"); + } else if repo.mirror.is_some_and(|b| b) { + println!( + "{bold}{actor_name}{reset} created mirror {bold}{yellow}{full_name}{reset}" + ); } else { - if repo.mirror.is_some_and(|b| b) { - println!("{bold}{actor_name}{reset} created mirror {bold}{yellow}{full_name}{reset}"); - } else { - println!("{bold}{actor_name}{reset} created repository {bold}{yellow}{full_name}{reset}"); - } + println!("{bold}{actor_name}{reset} created repository {bold}{yellow}{full_name}{reset}"); } } ActivityOpType::RenameRepo => { |