feat: DSL parser + AST implementation #127
Triggered via pull request
February 11, 2025 01:20
Status
Cancelled
Total duration
2m 6s
Artifacts
–
test.yml
on: pull_request
ubuntu / stable / minimal-versions
57s
ubuntu / stable / coverage
1m 2s
Matrix: os-check
Matrix: required
Annotations
2 errors and 2 warnings
windows-latest / stable
Canceling since a higher priority waiting request for 'test-alexis/dsl-compiler' exists
|
windows-latest / stable
The operation was canceled.
|
[clippy] optd-core/src/dsl/parser/expr.rs#L197:
optd-core/src/dsl/parser/expr.rs#L197
warning: this `map_or` can be simplified
--> optd-core/src/dsl/parser/expr.rs:197:8
|
197 | if name
| ________^
198 | | .chars()
199 | | .next()
200 | | .map_or(false, |c| c.is_ascii_lowercase())
| |__________________________________________________^
|
= 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
|
197 ~ if name
198 + .chars()
199 + .next().is_some_and(|c| c.is_ascii_lowercase())
|
|
[clippy] optd-core/src/dsl/parser/expr.rs#L197:
optd-core/src/dsl/parser/expr.rs#L197
warning: this `map_or` is redundant
--> optd-core/src/dsl/parser/expr.rs:197:8
|
197 | if name
| ________^
198 | | .chars()
199 | | .next()
200 | | .map_or(false, |c| c.is_ascii_lowercase())
| |__________________________________________________^
|
= 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
|
197 ~ if name
198 + .chars()
199 + .next().is_some_and(|c| c.is_ascii_lowercase())
|
|