Skip to content

Commit 786ffbc

Browse files
Implement some clippy suggestions
1 parent 49697e7 commit 786ffbc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/subcommands/list.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use octocrab::models::{repos::Release, Repository};
1212
use tokio::task::JoinSet;
1313

1414
enum Metadata {
15-
CF(Mod),
16-
MD(Project, Vec<TeamMember>),
15+
CF(Box<Mod>),
16+
MD(Box<Project>, Vec<TeamMember>),
1717
GH(Box<Repository>, Vec<Release>),
1818
}
1919
impl Metadata {
@@ -93,10 +93,10 @@ pub async fn verbose(profile: &mut Profile, markdown: bool) -> Result<()> {
9393

9494
let mut metadata = Vec::new();
9595
for (project, members) in mr_projects.into_iter().zip(mr_teams_members) {
96-
metadata.push(Metadata::MD(project, members));
96+
metadata.push(Metadata::MD(Box::new(project), members));
9797
}
9898
for project in cf_projects {
99-
metadata.push(Metadata::CF(project));
99+
metadata.push(Metadata::CF(Box::new(project)));
100100
}
101101
for res in tasks.join_all().await {
102102
let (repo, releases) = res?;

src/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn get_args(subcommand: SubCommands, config_file: Option<&str>) -> Ferium {
3333
}
3434
Ferium {
3535
subcommand,
36-
config_file: Some(running.into()),
36+
config_file: Some(running),
3737
..DEFAULT
3838
}
3939
}

0 commit comments

Comments
 (0)