aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r--components/script/dom/blob.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index f30eaa80a90..4c3cda4715e 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -79,12 +79,9 @@ impl Blob {
}
}
-pub trait BlobHelpers {
- fn read_out_buffer(self, send: Sender<Vec<u8>>);
-}
-impl<'a> BlobHelpers for &'a Blob {
- fn read_out_buffer(self, send: Sender<Vec<u8>>) {
+impl Blob {
+ pub fn read_out_buffer(&self, send: Sender<Vec<u8>>) {
send.send(self.bytes.clone().unwrap_or(vec![])).unwrap();
}
}