Update deps, fix breaking changes of deps, bump versions #353
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
tests.yml
on: pull_request
Format
16s
Matrix: API
Matrix: Tool
Matrix: Examples
Matrix: Utils
Annotations
1 error and 10 warnings
Format
Rustfmt has exited with 54 suggestions
|
Suggested formatting at line 46 (replaced with 4 lines):
api/gfx/src/lib.rs#L46
Ok(core::slice::from_raw_parts_mut(
buf,
(LCD_ROWSIZE * LCD_ROWS) as usize,
))
|
Suggested formatting at lines 280-289 (replaced with 9 lines):
api/gfx/src/text.rs#L280
let res = unsafe {
f(
font,
s.as_ptr().cast(),
text.as_ref().len(),
StringEncoding::UTF8,
tracking,
)
};
|
Suggested formatting at lines 208-223 (replaced with 15 lines):
cargo/src/assets/mod.rs#L208
let apply = |plan: CachedPlan, kind| -> CargoResult<()> {
let dest = match kind {
AssetKind::Package => locked.as_inner().assets(),
AssetKind::Dev => locked.as_inner().assets_dev(),
};
let kind_prefix = match kind {
AssetKind::Package => "",
AssetKind::Dev => "dev-",
};
config.log()
.status("Build", format!("{kind_prefix}assets for {}", dep_pkg_id));
config.log().verbose(|mut log| {
let s = format!("destination: {}", dest.as_relative_to_root(config).display());
log.status("", s)
});
|
Suggested formatting at lines 226-227 (replaced with 2 lines):
cargo/src/assets/mod.rs#L226
let metadata = options.get(dependency).expect("Metadata is gone, impossible!");
let report = plan.apply(&dest, &metadata.assets_options(), config)?;
|
Suggested formatting at lines 230-234 (replaced with 5 lines):
cargo/src/assets/mod.rs#L230
// print report:
for (x, (m, results)) in report.results.iter().enumerate() {
let results = results.iter().enumerate();
let expr = m.exprs();
let incs = m.sources();
|
Suggested formatting at lines 236-247 (replaced with 12 lines):
cargo/src/assets/mod.rs#L236
for (y, res) in results {
let path = incs[y].target();
let path = path.as_relative_to_root(config);
match res {
Ok(op) => {
config.log().verbose(|mut log| {
let msg = format!("asset [{x}:{y}] {}", path.display());
log.status(format!("{op:?}"), msg)
})
},
Err(err) => {
use fs_extra::error::ErrorKind as FsExtraErrorKind;
|
Suggested formatting at lines 249-261 (replaced with 12 lines):
cargo/src/assets/mod.rs#L249
let error = match &err.kind {
FsExtraErrorKind::Io(err) => format!("IO: {err}"),
FsExtraErrorKind::StripPrefix(err) => format!("StripPrefix: {err}"),
FsExtraErrorKind::OsString(err) => format!("OsString: {err:?}"),
_ => err.to_string(),
};
let message = format!(
"Asset [{x}:{y}], rule: '{} <- {} | {}', {error}",
expr.0.original(),
expr.1.original(),
path.display()
);
|
Suggested formatting at lines 263-266 (replaced with 3 lines):
cargo/src/assets/mod.rs#L263
config.log().status_with_color("Error", message, Color::Red)
},
};
|
|
Suggested formatting at lines 269-272 (replaced with 3 lines):
cargo/src/assets/mod.rs#L269
if report.has_errors() {
if !config.compile_options.build_config.keep_going {
bail!("Assets build failed.");
|