Skip to content

Commit 4aa210d

Browse files
committed
lint
1 parent 764f480 commit 4aa210d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/squawk/src/cmd.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub(crate) enum Cmd {
1919
Help,
2020
None,
2121
Server,
22-
UploadToGithub(Config),
22+
UploadToGithub(Box<Config>),
2323
}
2424

2525
impl Cmd {
@@ -76,7 +76,7 @@ impl Cmd {
7676
Some(Command::Server) => Cmd::Server,
7777
Some(Command::UploadToGithub(_)) => {
7878
let conf = Config::from(opts);
79-
Cmd::UploadToGithub(conf)
79+
Cmd::UploadToGithub(Box::new(conf))
8080
}
8181
None => {
8282
let conf = Config::from(opts);

crates/squawk/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Please open an issue at https://github.com/sbdchd/squawk/issues/new with the log
188188
squawk_server::run().context("language server failed")?;
189189
}
190190
Cmd::UploadToGithub(config) => {
191-
github::check_and_comment_on_pr(config).context("Upload to GitHub failed")?;
191+
github::check_and_comment_on_pr(*config).context("Upload to GitHub failed")?;
192192
}
193193
Cmd::Debug(debug_args) => {
194194
let stdout = io::stdout();

0 commit comments

Comments
 (0)