Skip to content

Cargo-cfg, rustfmt and other various fixes #332

Cargo-cfg, rustfmt and other various fixes

Cargo-cfg, rustfmt and other various fixes #332

Re-run triggered October 27, 2023 09:31
Status Failure
Total duration 34s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

tests.yml

on: pull_request
Matrix: API
Matrix: Tool
Matrix: Examples
Matrix: Utils
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
Format
Rustfmt has exited with 16 suggestions
Suggested formatting at line 161 (replaced with 1 line): api/ctrl/src/buttons.rs#L161
let mut fmt = f.debug_tuple(&format!("PDButtons[{:08b}]", self.0.0));
Suggested formatting at lines 330-334 (replaced with 1 line): api/gfx/src/bitmap/bitmap.rs#L330
if res == 0 { Ok(()) } else { Err(Error::InvalidMask) }
Suggested formatting at line 57 (replaced with 4 lines): api/sys/src/build.rs#L57
println!( "cargo:warning=Playdate bindgen found but also built as dependency of the {} by enabled feature 'bindgen'. You might want to disable that feature to significantly decrease build time.", pkg_name );
Suggested formatting at lines 98-104 (replaced with 1 line): api/sys/src/lib.rs#L98
fn from(value: bool) -> Self { if value { Self::Continue } else { Self::Stop } }
Suggested formatting at lines 108-114 (replaced with 1 line): api/sys/src/lib.rs#L108
fn from(res: Result<T, E>) -> Self { if res.is_ok() { Self::Continue } else { Self::Stop } }
Suggested formatting at lines 176-182 (replaced with 1 line): api/system/src/update.rs#L176
fn from(value: bool) -> Self { if value { Self::Continue } else { Self::Stop } }
Suggested formatting at lines 186-192 (replaced with 1 line): api/system/src/update.rs#L186
fn from(res: Result<T, E>) -> Self { if res.is_ok() { Self::Continue } else { Self::Stop } }
Suggested formatting at lines 467-470 (replaced with 5 lines): cargo/src/cli/mod.rs#L467
let specials_vals = specials_args.iter() .flat_map(|arg| { let max_values = if let Some(range) = arg.get_num_args() { assert!(