mmastrac / rust-libc-print

#[no_std] print equivalent for Rust
Apache License 2.0
59 stars 9 forks source link

Fix "warning: attribute should be applied to an `extern` block" #72

Open mmastrac opened 2 years ago

mmastrac commented 2 years ago

See message in #70

mmastrac commented 2 years ago
warning: attribute should be applied to an `extern` block
  --> src/lib.rs:24:1
   |
24 |   #[link(name = "c")]
   |   ^^^^^^^^^^^^^^^^^^^
25 | / mod c {
26 | |     extern "C" {}
27 | | }
   | |_- not an `extern` block
   |
   = note: `#[warn(unused_attributes)]` on by default
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!