Remove unused code

This commit is contained in:
Hanno Braun 2023-06-20 11:18:17 +02:00
parent 18aa04631b
commit e048c02cec
2 changed files with 2 additions and 5 deletions

View File

@ -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()?;
}
}

View File

@ -19,7 +19,6 @@ enum Error {
pub struct Registry {
token: SecUtf8,
_crates: Vec<Crate>,
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,
}
}