diff options
author | Daan Sprenkels <dsprenkels@gmail.com> | 2016-10-30 21:50:57 +0100 |
---|---|---|
committer | Daan Sprenkels <dsprenkels@gmail.com> | 2016-10-31 18:11:37 +0100 |
commit | 66059904b74a4dacbec8393d639d69cfd9011ea7 (patch) | |
tree | fbdff7eaefbe1a5918851b24b37c8cdf50a61874 | |
parent | 179e11ad8d834dbbc4fc14209ce0c9b169085df4 (diff) | |
download | servo-66059904b74a4dacbec8393d639d69cfd9011ea7.tar.gz servo-66059904b74a4dacbec8393d639d69cfd9011ea7.zip |
Remove extra spaces in function calls and declarations
-rw-r--r-- | components/layout/construct.rs | 2 | ||||
-rw-r--r-- | components/net/bluetooth_thread.rs | 2 | ||||
-rw-r--r-- | components/net/fetch/cors_cache.rs | 2 | ||||
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 16 | ||||
-rw-r--r-- | components/script/dom/treewalker.rs | 2 | ||||
-rw-r--r-- | components/script/dom/xmlhttprequest.rs | 2 | ||||
-rw-r--r-- | components/style/viewport.rs | 2 |
7 files changed, 14 insertions, 14 deletions
diff --git a/components/layout/construct.rs b/components/layout/construct.rs index 03d7e767f69..572498aad35 100644 --- a/components/layout/construct.rs +++ b/components/layout/construct.rs @@ -1620,7 +1620,7 @@ impl<ConcreteThreadSafeLayoutNode> NodeUtils for ConcreteThreadSafeLayoutNode fn construction_result_mut(self, data: &mut PersistentLayoutData) -> &mut ConstructionResult { match self.get_pseudo_element_type() { PseudoElementType::Before(_) => &mut data.before_flow_construction_result, - PseudoElementType::After (_) => &mut data.after_flow_construction_result, + PseudoElementType::After(_) => &mut data.after_flow_construction_result, PseudoElementType::DetailsSummary(_) => &mut data.details_summary_flow_construction_result, PseudoElementType::DetailsContent(_) => &mut data.details_content_flow_construction_result, PseudoElementType::Normal => &mut data.flow_construction_result, diff --git a/components/net/bluetooth_thread.rs b/components/net/bluetooth_thread.rs index efdeb02d7b2..bb71b27469b 100644 --- a/components/net/bluetooth_thread.rs +++ b/components/net/bluetooth_thread.rs @@ -162,7 +162,7 @@ pub struct BluetoothManager { } impl BluetoothManager { - pub fn new (receiver: IpcReceiver<BluetoothMethodMsg>, adapter: Option<BluetoothAdapter>) -> BluetoothManager { + pub fn new(receiver: IpcReceiver<BluetoothMethodMsg>, adapter: Option<BluetoothAdapter>) -> BluetoothManager { BluetoothManager { receiver: receiver, adapter: adapter, diff --git a/components/net/fetch/cors_cache.rs b/components/net/fetch/cors_cache.rs index 8d494ab33c1..71d97dd36ce 100644 --- a/components/net/fetch/cors_cache.rs +++ b/components/net/fetch/cors_cache.rs @@ -94,7 +94,7 @@ impl CORSCache { } /// [Clear the cache](https://fetch.spec.whatwg.org/#concept-cache-clear) - pub fn clear (&mut self, request: &Request) { + pub fn clear(&mut self, request: &Request) { let CORSCache(buf) = self.clone(); let new_buf: Vec<CORSCacheEntry> = buf.into_iter().filter(|e| e.origin == *request.origin.borrow() && diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 963f7f83165..5215359df8a 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -416,8 +416,8 @@ pub fn Navigate(iframe: &HTMLIFrameElement, direction: TraversalDirection) -> Er Ok(()) } else { - debug!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top - level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"); + debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top", + "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)")); Err(Error::NotSupported) } } @@ -499,8 +499,8 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement { } Ok(()) } else { - debug!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top - level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"); + debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top", + "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)")); Err(Error::NotSupported) } } @@ -511,8 +511,8 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement { self.set_visible(visible); Ok(()) } else { - debug!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top - level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"); + debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top", + "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)")); Err(Error::NotSupported) } } @@ -522,8 +522,8 @@ impl HTMLIFrameElementMethods for HTMLIFrameElement { if self.Mozbrowser() { Ok(self.visibility.get()) } else { - debug!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top - level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)"); + debug!(concat!("this frame is not mozbrowser: mozbrowser attribute missing, or not a top", + "level window, or mozbrowser preference not set (use --pref dom.mozbrowser.enabled)")); Err(Error::NotSupported) } } diff --git a/components/script/dom/treewalker.rs b/components/script/dom/treewalker.rs index 83d74cdbd81..1dc3d22f1cf 100644 --- a/components/script/dom/treewalker.rs +++ b/components/script/dom/treewalker.rs @@ -215,7 +215,7 @@ impl TreeWalkerMethods for TreeWalker { } match node.GetFirstChild() { None => break, - Some (child) => { + Some(child) => { // "1. Set node to its first child." node = child; // "2. Filter node and set result to the return value." diff --git a/components/script/dom/xmlhttprequest.rs b/components/script/dom/xmlhttprequest.rs index a9a2b0cb476..1f25a9e02d1 100644 --- a/components/script/dom/xmlhttprequest.rs +++ b/components/script/dom/xmlhttprequest.rs @@ -525,7 +525,7 @@ impl XMLHttpRequestMethods for XMLHttpRequest { // Step 7 self.upload_complete.set(match extracted { None => true, - Some (ref e) if e.0.is_empty() => true, + Some(ref e) if e.0.is_empty() => true, _ => false }); // Step 8 diff --git a/components/style/viewport.rs b/components/style/viewport.rs index f46659dd7c4..6ae1a72fcbd 100644 --- a/components/style/viewport.rs +++ b/components/style/viewport.rs @@ -94,7 +94,7 @@ declare_viewport_descriptor! { } trait FromMeta: Sized { - fn from_meta (value: &str) -> Option<Self>; + fn from_meta(value: &str) -> Option<Self>; } // ViewportLength is a length | percentage | auto | extend-to-zoom |