From e048c02ceca6ea14c2c6f5e14a6a169cc3ffe04e Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Tue, 20 Jun 2023 11:18:17 +0200 Subject: [PATCH] Remove unused code --- tools/release-operator/src/main.rs | 3 +-- tools/release-operator/src/registry.rs | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/release-operator/src/main.rs b/tools/release-operator/src/main.rs index 0480e63ce..0086dcdef 100644 --- a/tools/release-operator/src/main.rs +++ b/tools/release-operator/src/main.rs @@ -77,8 +77,7 @@ fn main() -> anyhow::Result<()> { .detect()?; } Commands::Publish(args) => { - Registry::new(&args.token, &args.crates, args.dry_run) - .publish_crates()?; + Registry::new(&args.token, args.dry_run).publish_crates()?; } } diff --git a/tools/release-operator/src/registry.rs b/tools/release-operator/src/registry.rs index da458528e..a4e3c6606 100644 --- a/tools/release-operator/src/registry.rs +++ b/tools/release-operator/src/registry.rs @@ -19,7 +19,6 @@ enum Error { pub struct Registry { token: SecUtf8, - _crates: Vec, dry_run: bool, } @@ -40,10 +39,9 @@ enum CrateState { } impl Registry { - pub fn new(token: &SecUtf8, crates: &[Crate], dry_run: bool) -> Self { + pub fn new(token: &SecUtf8, dry_run: bool) -> Self { Self { token: token.to_owned(), - _crates: crates.to_vec(), dry_run, } }