Kaynağa Gözat

Fix error wording in `data-url` and `idna` when missing `alloc` feature

Mads Marquart 3 yıl önce
ebeveyn
işleme
4afc9829dc
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      data-url/src/lib.rs
  2. 1 1
      idna/src/lib.rs

+ 1 - 1
data-url/src/lib.rs

@@ -24,7 +24,7 @@ extern crate std as _;
 extern crate alloc;
 
 #[cfg(not(feature = "alloc"))]
-compile_error!("the `alloc` feature must currently be enabled");
+compile_error!("the `alloc` feature must be enabled");
 
 use alloc::{string::String, vec::Vec};
 

+ 1 - 1
idna/src/lib.rs

@@ -40,7 +40,7 @@ extern crate std;
 extern crate alloc;
 
 #[cfg(not(feature = "alloc"))]
-compile_error!("the `alloc` feature must currently be enabled");
+compile_error!("the `alloc` feature must be enabled");
 
 #[cfg(test)]
 #[macro_use]