mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
change changes effecting verbosity
This commit is contained in:
parent
418842faf9
commit
7c45a4fea0
9 changed files with 17 additions and 31 deletions
|
@ -394,9 +394,8 @@ impl CORSCache {
|
|||
header_name: &str)
|
||||
-> Option<&'a mut CORSCacheEntry> {
|
||||
self.cleanup();
|
||||
let ref mut buf = self.0;
|
||||
// Credentials are not yet implemented here
|
||||
buf.iter_mut().find(|e| {
|
||||
self.0.iter_mut().find(|e| {
|
||||
e.origin.scheme == request.origin.scheme && e.origin.host() == request.origin.host() &&
|
||||
e.origin.port() == request.origin.port() && e.url == request.destination &&
|
||||
e.header_or_method.match_header(header_name)
|
||||
|
@ -421,9 +420,8 @@ impl CORSCache {
|
|||
-> Option<&'a mut CORSCacheEntry> {
|
||||
// we can take the method from CORSRequest itself
|
||||
self.cleanup();
|
||||
let ref mut buf = self.0;
|
||||
// Credentials are not yet implemented here
|
||||
buf.iter_mut().find(|e| {
|
||||
self.0.iter_mut().find(|e| {
|
||||
e.origin.scheme == request.origin.scheme && e.origin.host() == request.origin.host() &&
|
||||
e.origin.port() == request.origin.port() && e.url == request.destination &&
|
||||
e.header_or_method.match_method(method)
|
||||
|
|
|
@ -325,8 +325,7 @@ impl ScriptChan for SendableMainThreadScriptChan {
|
|||
}
|
||||
|
||||
fn clone(&self) -> Box<ScriptChan + Send> {
|
||||
let ref chan = self.0;
|
||||
box SendableMainThreadScriptChan((*chan).clone())
|
||||
box SendableMainThreadScriptChan((&self.0).clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -348,8 +347,7 @@ impl ScriptChan for MainThreadScriptChan {
|
|||
}
|
||||
|
||||
fn clone(&self) -> Box<ScriptChan + Send> {
|
||||
let ref chan = self.0;
|
||||
box MainThreadScriptChan((*chan).clone())
|
||||
box MainThreadScriptChan((&self.0).clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,8 +20,7 @@ impl TaskSource<DOMManipulationTask> for DOMManipulationTaskSource {
|
|||
}
|
||||
|
||||
fn clone(&self) -> Box<TaskSource<DOMManipulationTask> + Send> {
|
||||
let ref chan = self.0;
|
||||
box DOMManipulationTaskSource((*chan).clone())
|
||||
box DOMManipulationTaskSource((&self.0).clone())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,7 +14,6 @@ impl ScriptChan for FileReadingTaskSource {
|
|||
}
|
||||
|
||||
fn clone(&self) -> Box<ScriptChan + Send> {
|
||||
let ref chan = self.0;
|
||||
box FileReadingTaskSource((*chan).clone())
|
||||
box FileReadingTaskSource((&self.0).clone())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ impl ScriptChan for HistoryTraversalTaskSource {
|
|||
}
|
||||
|
||||
fn clone(&self) -> Box<ScriptChan + Send> {
|
||||
let ref chan = self.0;
|
||||
box HistoryTraversalTaskSource((*chan).clone())
|
||||
box HistoryTraversalTaskSource((&self.0).clone())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ impl ScriptChan for NetworkingTaskSource {
|
|||
}
|
||||
|
||||
fn clone(&self) -> Box<ScriptChan + Send> {
|
||||
let ref chan = self.0;
|
||||
box NetworkingTaskSource((*chan).clone())
|
||||
box NetworkingTaskSource((&self.0).clone())
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ impl ScriptChan for UserInteractionTaskSource {
|
|||
}
|
||||
|
||||
fn clone(&self) -> Box<ScriptChan + Send> {
|
||||
let ref chan = self.0;
|
||||
box UserInteractionTaskSource((*chan).clone())
|
||||
box UserInteractionTaskSource((&self.0).clone())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue