mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +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.
|
||||
let build_dir = format!("{}/build", env!("CARGO_MANIFEST_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()
|
||||
.file("src/libc.c")
|
||||
.include(&build_dir)
|
||||
.include(build_dir)
|
||||
.compile("flibc.a");
|
||||
|
||||
let mut build = cc::Build::new();
|
||||
|
|
|
@ -448,7 +448,7 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
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!("FAF")) == Some(RgbColor::from_rgb(0xff, 0xaa, 0xff)));
|
||||
|
|
Loading…
Reference in a new issue