mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-03 04:34:21 -05:00
Fix clippy lints and run font tests on travis
This fixes some existing clippy issues and runs the `font` tests through travis. Testing of copypasta crate was omitted due to problens when running on headless travis-ci environment (x11 clipboard would fail).
This commit is contained in:
parent
d25134bc6b
commit
ddb9a55817
4 changed files with 6 additions and 5 deletions
|
@ -31,3 +31,4 @@ matrix:
|
|||
script:
|
||||
- if [ -n "$CLIPPY" ]; then cargo clippy --all-features --all-targets; fi
|
||||
- if [ -z "$CLIPPY" ]; then cargo test; fi
|
||||
- if [ -z "$CLIPPY" ]; then cargo test -p font; fi
|
||||
|
|
|
@ -631,7 +631,7 @@ mod tests {
|
|||
};
|
||||
print!("{}", c);
|
||||
}
|
||||
print!("\n");
|
||||
println!();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -326,7 +326,7 @@ mod tests {
|
|||
print!("embeddedbitmap={:?}; ", font.embeddedbitmap());
|
||||
print!("lcdfilter={:?}; ", font.lcdfilter());
|
||||
print!("hintstyle={:?}", font.hintstyle());
|
||||
println!("");
|
||||
println!();
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -346,7 +346,7 @@ mod tests {
|
|||
print!("style={:?}; ", font.style());
|
||||
print!("rgba={:?}", font.rgba());
|
||||
print!("rgba={:?}", font.rgba());
|
||||
println!("");
|
||||
println!();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -367,7 +367,7 @@ mod tests {
|
|||
print!("family={:?}; ", font.family());
|
||||
print!("style={:?}; ", font.style());
|
||||
print!("rgba={:?}", font.rgba());
|
||||
println!("");
|
||||
println!();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -180,7 +180,7 @@ fn run(mut config: Config, options: &cli::Options) -> Result<(), Box<Error>> {
|
|||
.as_ref()
|
||||
.and_then(|monitor| monitor.pending_config())
|
||||
{
|
||||
config = new_config.update_dynamic_title(&options);
|
||||
config = new_config.update_dynamic_title(options);
|
||||
display.update_config(&config);
|
||||
processor.update_config(&config);
|
||||
terminal.update_config(&config);
|
||||
|
|
Loading…
Reference in a new issue