mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-29 21:40:27 +00:00
![bors[bot]](/assets/img/avatar_default.png)
101: Fix boxed Error in build.rs for nightly r=japaric a=XOSplicer on nightly (rustc 1.37.0-nightly (7840a0b75 2019-05-31)) the build is currently broken (see below). Adding `dyn Error` as the error result in `build.rs` solves the problem. ``` $ cargo +nightly build Compiling typenum v1.10.0 Compiling stable_deref_trait v1.1.1 Compiling byteorder v1.2.7 Compiling heapless v0.5.0-alpha.2 (/home/felix/workspace/rust/heapless) error: trait objects without an explicit `dyn` are deprecated --> build.rs:5:29 | 5 | fn main() -> Result<(), Box<Error>> { | ^^^^^ help: use `dyn`: `dyn Error` | note: lint level defined here --> build.rs:1:9 | 1 | #![deny(warnings)] | ^^^^^^^^ = note: #[deny(bare_trait_objects)] implied by #[deny(warnings)] error: aborting due to previous error error: Could not compile `heapless`. warning: build failed, waiting for other jobs to finish... error: build failed ``` Co-authored-by: Felix Stegmaier <stegmaier.felix@gmail.com>
heapless
static
friendly data structures that don't require dynamic memory allocation
Documentation
Change log
License
Licensed under either of
-
Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
-
MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Description
Languages
Rust
100%