Suggest {to,from}_ne_bytes for transmutations between arrays and integers, etc

This commit is contained in:
bendn
2025-03-31 15:50:56 +07:00
parent ccbcbee5e7
commit 338e7388ea
+2 -6
View File
@@ -1,6 +1,6 @@
#![feature(no_core, unboxed_closures)]
#![no_core]
#![allow(dead_code)]
#![allow(dead_code, unnecessary_transmutes)]
extern crate mini_core;
@@ -11,11 +11,7 @@ fn abc(a: u8) -> u8 {
}
fn bcd(b: bool, a: u8) -> u8 {
if b {
a * 2
} else {
a * 3
}
if b { a * 2 } else { a * 3 }
}
fn call() {