mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Fix some clippy warnings
This commit is contained in:
parent
9a0728eed6
commit
ce19f82c19
2 changed files with 3 additions and 3 deletions
4
build.rs
4
build.rs
|
@ -12,11 +12,11 @@ fn main() {
|
||||||
// language server.
|
// language server.
|
||||||
let build_dir = format!("{}/build", env!("CARGO_MANIFEST_DIR"));
|
let build_dir = format!("{}/build", env!("CARGO_MANIFEST_DIR"));
|
||||||
let build_dir = option_env!("FISH_BUILD_DIR").unwrap_or(&build_dir);
|
let build_dir = option_env!("FISH_BUILD_DIR").unwrap_or(&build_dir);
|
||||||
rsconf::set_env_value("FISH_BUILD_DIR", &build_dir);
|
rsconf::set_env_value("FISH_BUILD_DIR", build_dir);
|
||||||
|
|
||||||
cc::Build::new()
|
cc::Build::new()
|
||||||
.file("src/libc.c")
|
.file("src/libc.c")
|
||||||
.include(&build_dir)
|
.include(build_dir)
|
||||||
.compile("flibc.a");
|
.compile("flibc.a");
|
||||||
|
|
||||||
let mut build = cc::Build::new();
|
let mut build = cc::Build::new();
|
||||||
|
|
|
@ -448,7 +448,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn parse_rgb() {
|
fn parse_rgb() {
|
||||||
assert!(RgbColor::from_wstr(L!("##FF00A0")) == None);
|
assert!(RgbColor::from_wstr(L!("##FF00A0")).is_none());
|
||||||
assert!(RgbColor::from_wstr(L!("#FF00A0")) == Some(RgbColor::from_rgb(0xff, 0x00, 0xa0)));
|
assert!(RgbColor::from_wstr(L!("#FF00A0")) == Some(RgbColor::from_rgb(0xff, 0x00, 0xa0)));
|
||||||
assert!(RgbColor::from_wstr(L!("FF00A0")) == Some(RgbColor::from_rgb(0xff, 0x00, 0xa0)));
|
assert!(RgbColor::from_wstr(L!("FF00A0")) == Some(RgbColor::from_rgb(0xff, 0x00, 0xa0)));
|
||||||
assert!(RgbColor::from_wstr(L!("FAF")) == Some(RgbColor::from_rgb(0xff, 0xaa, 0xff)));
|
assert!(RgbColor::from_wstr(L!("FAF")) == Some(RgbColor::from_rgb(0xff, 0xaa, 0xff)));
|
||||||
|
|
Loading…
Reference in a new issue