File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed
Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1+ pub use crate :: LazyLoadBlob ;
2+
3+ impl std:: default:: Default for LazyLoadBlob {
4+ fn default ( ) -> Self {
5+ LazyLoadBlob {
6+ mime : None ,
7+ bytes : Vec :: new ( ) ,
8+ }
9+ }
10+ }
11+
12+ impl std:: cmp:: PartialEq for LazyLoadBlob {
13+ fn eq ( & self , other : & Self ) -> bool {
14+ self . mime == other. mime && self . bytes == other. bytes
15+ }
16+ }
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ mod on_exit;
6060pub use on_exit:: OnExit ;
6161mod capability;
6262pub use capability:: Capability ;
63+ mod lazy_load_blob;
64+ pub use lazy_load_blob:: LazyLoadBlob ;
6365
6466/// Implement the wit-bindgen specific code that the kernel uses to hook into
6567/// a process. Write an `init(our: Address)` function and call it with this.
@@ -134,15 +136,6 @@ pub fn spawn(
134136 )
135137}
136138
137- impl std:: default:: Default for LazyLoadBlob {
138- fn default ( ) -> Self {
139- LazyLoadBlob {
140- mime : None ,
141- bytes : Vec :: new ( ) ,
142- }
143- }
144- }
145-
146139/// Create a blob with no MIME type and a generic type, plus a serializer
147140/// function that turns that type into bytes.
148141///
You can’t perform that action at this time.
0 commit comments