Skip to content

Commit

Permalink
fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jan 24, 2025
1 parent 5a06a3f commit 5180892
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/rust-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
# test-fmt:
cargo fmt --all -- --check
#
# Run cargo clippy
# clippy:
cargo clippy --workspace --all-targets -- -D warnings
#
# Quick compile
# check:
RUSTFLAGS='-D warnings' cargo check --workspace --all-targets
Expand All @@ -41,6 +37,10 @@ jobs:
# test:
cargo test --workspace --all-targets
#
# Run cargo clippy
# clippy:
cargo clippy --workspace --all-targets -- -D warnings
#
# Test documentation
# test-doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
Expand Down
8 changes: 4 additions & 4 deletions rustutils/src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ pub fn parse_css_color(css_str: &str) -> ffi::ParsedColor {
.parse::<Color>()
.map(|color| ffi::ParsedColor {
success: true,
r: color.r as f32,
g: color.g as f32,
b: color.b as f32,
a: color.a as f32,
r: color.r,
g: color.g,
b: color.b,
a: color.a,
})
.unwrap_or_else(|_| ffi::ParsedColor {
success: false,
Expand Down

0 comments on commit 5180892

Please sign in to comment.