Skip to content

Commit

Permalink
Apply formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
lhstrh committed Nov 3, 2023
1 parent 2b94c5d commit 335d028
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
3 changes: 2 additions & 1 deletion core/src/main/java/org/lflang/validation/LFValidator.java
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,8 @@ public void checkTargetDecl(TargetDecl target) throws IOException {
@Check(CheckType.NORMAL)
public void checkTargetProperties(KeyValuePairs targetProperties) {
if (targetProperties.eContainer() instanceof TargetDecl) {
// Skip dictionaries that may be part of a target property value because type checking is done recursively.
// Skip dictionaries that may be part of a target property value because type checking is done
// recursively.
new TargetConfig(this.target).validate(targetProperties, this.info.model, getErrorReporter());
}
}
Expand Down
19 changes: 9 additions & 10 deletions test/Rust/src/target/BuildProfileRelease.lf
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
// Tests that the we can enable the release profile A proxy for checking this is to check that debug
// assertions are disabled.
target Rust {
build-type: "Release"
}

main reactor {
reaction(startup) {=
assert!(!cfg!(debug_assertions), "debug assertions should be disabled");
println!("success");
=}
}

build-type: "Release"
}

main reactor {
reaction(startup) {=
assert!(!cfg!(debug_assertions), "debug assertions should be disabled");
println!("success");
=}
}

0 comments on commit 335d028

Please sign in to comment.