File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
//! <https://infra.spec.whatwg.org/#forgiving-base64-decode>
2
2
3
+ use alloc:: vec:: Vec ;
4
+
3
5
#[ derive( Debug ) ]
4
6
pub struct InvalidBase64 ( InvalidBase64Details ) ;
5
7
Original file line number Diff line number Diff line change 14
14
//! assert_eq!(body, b"Hello World!");
15
15
//! assert!(fragment.is_none());
16
16
//! ```
17
+ #![ no_std]
18
+
19
+ #[ macro_use]
20
+ extern crate alloc;
21
+
22
+ use alloc:: { string:: String , vec:: Vec } ;
17
23
18
24
macro_rules! require {
19
25
( $condition: expr) => {
Original file line number Diff line number Diff line change 1
- use std:: fmt:: { self , Write } ;
2
- use std:: str:: FromStr ;
1
+ use alloc:: { borrow:: ToOwned , string:: String , vec:: Vec } ;
2
+ use core:: fmt:: { self , Write } ;
3
+ use core:: str:: FromStr ;
3
4
4
5
/// <https://mimesniff.spec.whatwg.org/#mime-type-representation>
5
6
#[ derive( Debug , PartialEq , Eq ) ]
You can’t perform that action at this time.
0 commit comments