File tree Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Expand file tree Collapse file tree 4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ edition = "2018"
9
9
autotests = false
10
10
11
11
[dependencies ]
12
- matches = " 0.1"
12
+ matches = " 0.1.9 "
13
13
14
14
[dev-dependencies ]
15
15
rustc-test = " 0.3"
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 15
15
//! assert!(fragment.is_none());
16
16
//! ```
17
17
18
+ #![ no_std]
19
+ #[ macro_use]
20
+ extern crate alloc;
21
+
18
22
#[ macro_use]
19
23
extern crate matches;
20
24
25
+ use alloc:: { string:: String , vec:: Vec } ;
26
+
21
27
macro_rules! require {
22
28
( $condition: expr) => {
23
29
if !$condition {
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