File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11//! <https://infra.spec.whatwg.org/#forgiving-base64-decode>
22
3+ use alloc:: vec:: Vec ;
4+
35#[ derive( Debug ) ]
46pub struct InvalidBase64 ( InvalidBase64Details ) ;
57
Original file line number Diff line number Diff line change 1414//! assert_eq!(body, b"Hello World!");
1515//! assert!(fragment.is_none());
1616//! ```
17+ #![ no_std]
18+
19+ #[ macro_use]
20+ extern crate alloc;
21+
22+ use alloc:: { string:: String , vec:: Vec } ;
1723
1824macro_rules! require {
1925 ( $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 ;
34
45/// <https://mimesniff.spec.whatwg.org/#mime-type-representation>
56#[ derive( Debug , PartialEq , Eq ) ]
You can’t perform that action at this time.
0 commit comments