[core] Detect: Marks hold on and off sets; arena-core 0.2.0 checks pass
Marks keeps one verdict per exe: on ("This is a game") or off ("This is
not a game"). detect: Launched > marked off (None) > marked on (Marked,
with the library game if any) > InstallDir. Serde writes
{"on": [...], "off": [...]} and still reads the plain array as on;
an exe in both lists is refused, MAX_MARKS counts both.
Also: collapsible-if for clippy, rustfmt, README and FORMATS updated.
Checked: cargo test -p arena-core (183 passed), clippy -D warnings,
fmt --check, check for wasm32-unknown-unknown and aarch64-linux-android.
This commit is contained in:
@@ -150,8 +150,12 @@ fn errors_display_without_input() {
|
||||
}
|
||||
|
||||
fn modifiers() -> impl Strategy<Value = Modifiers> {
|
||||
(any::<bool>(), any::<bool>(), any::<bool>(), any::<bool>())
|
||||
.prop_map(|(ctrl, alt, shift, win)| Modifiers { ctrl, alt, shift, win })
|
||||
(any::<bool>(), any::<bool>(), any::<bool>(), any::<bool>()).prop_map(|(ctrl, alt, shift, win)| Modifiers {
|
||||
ctrl,
|
||||
alt,
|
||||
shift,
|
||||
win,
|
||||
})
|
||||
}
|
||||
|
||||
fn key() -> impl Strategy<Value = Key> {
|
||||
|
||||
Reference in New Issue
Block a user