Fix some clippy warnings

This commit is contained in:
ridiculousfish 2024-01-21 16:53:46 -08:00
parent 9a0728eed6
commit ce19f82c19
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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)));