mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix reported test-tidy errors
This fixes lines that were reported to have missing space after a comma.
This commit is contained in:
parent
24bc6dfb52
commit
d61a6e2161
13 changed files with 19 additions and 19 deletions
|
@ -60,7 +60,7 @@ impl DocumentLoader {
|
|||
/// are lots of iframes.
|
||||
pub fn new_with_task(resource_task: Arc<ResourceTask>,
|
||||
data: Option<NotifierData>,
|
||||
initial_load: Option<Url>,)
|
||||
initial_load: Option<Url>)
|
||||
-> DocumentLoader {
|
||||
let initial_loads = initial_load.into_iter().map(LoadType::PageSource).collect();
|
||||
|
||||
|
|
|
@ -1153,7 +1153,7 @@ impl Drop for CanvasRenderingContext2D {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn parse_color(string: &str) -> Result<RGBA,()> {
|
||||
pub fn parse_color(string: &str) -> Result<RGBA, ()> {
|
||||
let mut parser = Parser::new(&string);
|
||||
match CSSColor::parse(&mut parser) {
|
||||
Ok(CSSColor::RGBA(rgba)) => {
|
||||
|
|
|
@ -1068,7 +1068,7 @@ impl XMLHttpRequest {
|
|||
|
||||
fn fetch(&self,
|
||||
load_data: LoadData,
|
||||
cors_request: Result<Option<CORSRequest>,()>,
|
||||
cors_request: Result<Option<CORSRequest>, ()>,
|
||||
global: GlobalRef) -> ErrorResult {
|
||||
let cors_request = match cors_request {
|
||||
Err(_) => {
|
||||
|
|
|
@ -158,7 +158,7 @@ impl<T: ClipboardProvider> TextInput<T> {
|
|||
if begin.line != end.line {
|
||||
let mut s = String::new();
|
||||
s.push_str(&self.lines[begin.line][begin.index..]);
|
||||
for (_, line) in self.lines.iter().enumerate().filter(|&(i,_)| begin.line < i && i < end.line) {
|
||||
for (_, line) in self.lines.iter().enumerate().filter(|&(i, _)| begin.line < i && i < end.line) {
|
||||
s.push_str("\n");
|
||||
s.push_str(line);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue