Parcourir la source

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

Mads Marquart il y a 3 ans
Parent
commit
4afc9829dc
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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]