aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/blob.rs
diff options
context:
space:
mode:
authorcoalman <tehcoalman@gmail.com>2017-04-18 02:21:10 -0400
committercoalman <tehcoalman@gmail.com>2017-04-18 14:56:13 -0400
commitfc34b9a14dfb357f15116a5e53a73146be14845a (patch)
treee0f698a480c2ebd6a4e0e50f365b85feecaf2066 /components/script/dom/blob.rs
parent57e74542ee0b33bf103064a194f4d7ba27ea5b49 (diff)
downloadservo-fc34b9a14dfb357f15116a5e53a73146be14845a.tar.gz
servo-fc34b9a14dfb357f15116a5e53a73146be14845a.zip
Fix indentation errors in servo rust code that tidy now finds.
Diffstat (limited to 'components/script/dom/blob.rs')
-rw-r--r--components/script/dom/blob.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/blob.rs b/components/script/dom/blob.rs
index cb61ced9e3a..c076282dcc1 100644
--- a/components/script/dom/blob.rs
+++ b/components/script/dom/blob.rs
@@ -353,12 +353,12 @@ pub fn blob_parts_to_bytes(blobparts: Vec<BlobOrString>) -> Result<Vec<u8>, ()>
impl BlobMethods for Blob {
// https://w3c.github.io/FileAPI/#dfn-size
fn Size(&self) -> u64 {
- match *self.blob_impl.borrow() {
- BlobImpl::File(ref f) => f.size,
- BlobImpl::Memory(ref v) => v.len() as u64,
- BlobImpl::Sliced(ref parent, ref rel_pos) =>
- rel_pos.to_abs_range(parent.Size() as usize).len() as u64,
- }
+ match *self.blob_impl.borrow() {
+ BlobImpl::File(ref f) => f.size,
+ BlobImpl::Memory(ref v) => v.len() as u64,
+ BlobImpl::Sliced(ref parent, ref rel_pos) =>
+ rel_pos.to_abs_range(parent.Size() as usize).len() as u64,
+ }
}
// https://w3c.github.io/FileAPI/#dfn-type