mirror of
https://github.com/hannobraun/Fornjot
synced 2025-11-06 15:10:04 +00:00
Remove unused code
This commit is contained in:
parent
18aa04631b
commit
e048c02cec
@ -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()?;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user