Skip to content

chore(cache): more details for the test responses #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cache/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
Submit,
}

impl Default for Run {
fn default() -> Self {
Run::Submit
}
}

Check warning on line 35 in src/cache/mod.rs

View workflow job for this annotation

GitHub Actions / clippy

this `impl` can be derived

warning: this `impl` can be derived --> src/cache/mod.rs:31:1 | 31 | / impl Default for Run { 32 | | fn default() -> Self { 33 | | Run::Submit 34 | | } 35 | | } | |_^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls = note: `#[warn(clippy::derivable_impls)]` on by default = help: remove the manual implementation... help: ...and instead derive it... | 26 + #[derive(Default)] 27 | pub enum Run { | help: ...and mark the default variant | 28 ~ #[default] 29 ~ Submit, |

/// Requests if data not download
#[derive(Clone)]
Expand Down Expand Up @@ -361,7 +361,7 @@
.await?;

let run_res: RunCode = serde_json::from_str(&text).map_err(|e| {
anyhow!("JSON error: {e}, please double check your session and csrf config.")
anyhow!("Error JSON error: {e}, original response: {text}, please double check your session and csrf config.")
})?;

trace!("Run code result {:#?}", run_res);
Expand Down
Loading