Skip to content

Commit

Permalink
为sensor添加lint
Browse files Browse the repository at this point in the history
  • Loading branch information
A4-Tacks committed Apr 20, 2024
1 parent 50ae5b1 commit 591142d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mindustry_logic_bang_lang"
version = "0.15.7"
version = "0.15.8"
edition = "2021"

authors = ["A4-Tacks <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion tools/logic_lint/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "logic_lint"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion tools/logic_lint/src/lints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ make_lints! {
lints.extend(check_vars(src, line, args));
}
}
"read" (3) {
"read" | "sensor" (3) {
if let [_, result, args @ ..] = line.args() {
lints.extend(check_assign_var(src, line, result));
lints.extend(check_vars(src, line, args));
Expand Down

0 comments on commit 591142d

Please sign in to comment.