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, } }