You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch to core implicit prelude and only use std where required
By default, all modules in a crate will have the `std::prelude` included implicitly. By marking the crate as `no_std` and then manually adding `std` back using `extern crate std`, we ensure usage of `std` is explicit rather than implicit.
Additionally, we can swap most imports from `std` to `core` and `alloc`. `std` is mostly re-exports of those two crates, so only `std::error` and `std::io` remain used. Further, `std::error` is only used to preserve MSRV, `core::error` provides the same trait.
0 commit comments