Skip to content

Add support to Stylus Constructors #424

Add support to Stylus Constructors

Add support to Stylus Constructors #424

Triggered via pull request January 15, 2025 13:38
Status Success
Total duration 4m 29s
Artifacts

linux.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
this `map_or` is redundant: main/src/project.rs#L166
warning: this `map_or` is redundant --> main/src/project.rs:166:23 | 166 | } else if path.file_name().map_or(false, |f| { | _______________________^ 167 | | // If the user has has specified a list of source file patterns, check if the file 168 | | // matches the pattern. 169 | | if !glob_paths.is_empty() { ... | 179 | | } 180 | | }) { | |______________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_map_or = note: `#[warn(clippy::unnecessary_map_or)]` on by default help: use is_some_and instead | 166 ~ } else if path.file_name().is_some_and(|f| { 167 + // If the user has has specified a list of source file patterns, check if the file 168 + // matches the pattern. 169 + if !glob_paths.is_empty() { 170 + for glob_path in glob_paths.iter() { 171 + if glob_path == &path { 172 + return true; 173 + } 174 + } 175 + false 176 + } else { 177 + // Otherwise, by default include all rust files, Cargo.toml and Cargo.lock files. 178 + f == "Cargo.toml" || f == "Cargo.lock" || f.to_string_lossy().ends_with(".rs") 179 + } 180 ~ }) { |
(x86_64-unknown-linux-gnu, nightly)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
(x86_64-unknown-linux-gnu, stable)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636