mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Issue #9042: Report incorrect number of spaces around => in the style checker.
This commit is contained in:
parent
1ddcf9463a
commit
cec661fa86
7 changed files with 48 additions and 38 deletions
|
@ -359,7 +359,7 @@ impl NetworkEventActor {
|
|||
let mut mString = "".to_owned();
|
||||
if let Some(ref headers) = self.response.headers {
|
||||
mString = match headers.get() {
|
||||
Some(&ContentType(ref mime)) => mime.to_string(),
|
||||
Some(&ContentType(ref mime)) => mime.to_string(),
|
||||
None => "".to_owned()
|
||||
};
|
||||
}
|
||||
|
@ -377,7 +377,7 @@ impl NetworkEventActor {
|
|||
let mut cookies_size = 0;
|
||||
if let Some(ref headers) = self.response.headers {
|
||||
cookies_size = match headers.get() {
|
||||
Some(&Cookie(ref cookie)) => cookie.len(),
|
||||
Some(&Cookie(ref cookie)) => cookie.len(),
|
||||
None => 0
|
||||
};
|
||||
}
|
||||
|
@ -408,7 +408,7 @@ impl NetworkEventActor {
|
|||
let mut cookies_size = 0;
|
||||
if let Some(ref headers) = self.response.headers {
|
||||
cookies_size = match headers.get() {
|
||||
Some(&Cookie(ref cookie)) => cookie.len(),
|
||||
Some(&Cookie(ref cookie)) => cookie.len(),
|
||||
None => 0
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue