| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Fix clippy warnings on Rust 1.88, minus a few new lints We leave one cheeky warning for now, because clippy's suggested fix leads to a different warning on different platforms. ``` $ cargo clippy -p c2rust-ast-exporter -- -Aclippy::needless_lifetimes -Aclippy::uninlined_format_args Compiling c2rust-build-paths v0.20.0 (/home/brk/brk.c2rust/c2rust-build-paths) Compiling c2rust-ast-exporter v0.20.0 (/home/brk/brk.c2rust/c2rust-ast-exporter) warning: casting to the same type is unnecessary (`usize` -> `usize`) --> c2rust-ast-exporter/src/lib.rs:112:51 | 112 | let bytes = slice::from_raw_parts(cbytes, csize as usize); | ^^^^^^^^^^^^^^ help: try: `csize` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `#[warn(clippy::unnecessary_cast)]` on by default warning: `c2rust-ast-exporter` (lib) generated 1 warning (run `cargo clippy --fix --lib -p c2rust-ast-exporter` to apply 1 suggestion) Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.06s ``` | 1 年前 |