mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix indentation errors in servo rust code that tidy now finds.
This commit is contained in:
parent
57e74542ee
commit
fc34b9a14d
19 changed files with 127 additions and 127 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue