mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Fix existing syntactics nits.
This commit is contained in:
parent
7f935f010b
commit
8bb853f643
93 changed files with 393 additions and 397 deletions
|
@ -35,7 +35,7 @@ pub struct Blob {
|
|||
isClosed_: Cell<bool>
|
||||
}
|
||||
|
||||
fn is_ascii_printable(string: &DOMString) -> bool{
|
||||
fn is_ascii_printable(string: &DOMString) -> bool {
|
||||
// Step 5.1 in Sec 5.1 of File API spec
|
||||
// http://dev.w3.org/2006/webapi/FileAPI/#constructorBlob
|
||||
return string.chars().all(|c| { c >= '\x20' && c <= '\x7E' })
|
||||
|
@ -92,7 +92,7 @@ impl<'a> BlobHelpers for &'a Blob {
|
|||
|
||||
impl<'a> BlobMethods for &'a Blob {
|
||||
// https://dev.w3.org/2006/webapi/FileAPI/#dfn-size
|
||||
fn Size(self) -> u64{
|
||||
fn Size(self) -> u64 {
|
||||
match self.bytes {
|
||||
None => 0,
|
||||
Some(ref bytes) => bytes.len() as u64
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue