Skip to content

Commit f834db0

Browse files
committed
Add wildcard pattern to handle all IrValue variants - fixes CI build
1 parent 5574c50 commit f834db0

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

osc-codec-json/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "osc-codec-json"
3-
version = "0.1.0-alpha.4"
3+
version = "0.1.0-alpha.5"
44
edition = "2021"
55
rust-version = "1.75"
66
description = "Experimental JSON codec for osc-ir intermediate representation"

osc-codec-json/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ pub fn to_json(v: &IrValue) -> J {
8686
("elements".to_string(), J::Array(bundle.elements.iter().map(bundle_element_to_json).collect())),
8787
].into_iter().collect()),
8888
// OSC 1.1 Color and MIDI types - currently serialized as null
89-
// These will be properly implemented in a future version
90-
#[cfg(feature = "osc11")]
91-
IrValue::Color { .. } => J::Null,
92-
#[cfg(feature = "osc11")]
93-
IrValue::Midi { .. } => J::Null,
89+
// This handles any additional variants when osc11 is enabled
90+
_ => J::Null,
9491
}
9592
}
9693

osc-devtools/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "osc-devtools"
3-
version = "0.1.0-alpha.2"
3+
version = "0.1.0-alpha.3"
44
edition = "2021"
55
rust-version = "1.75"
66
description = "Experimental CLI tools and examples for osc-data-model workspace"
@@ -14,7 +14,7 @@ readme = "README.md"
1414

1515
[dependencies]
1616
osc-ir = { version = "0.1.0-alpha.1", features = ["alloc", "serde"] }
17-
osc-codec-json = { version = "0.1.0-alpha.3" }
17+
osc-codec-json = { version = "0.1.0-alpha.5" }
1818
osc-codec-msgpack = { version = "0.1.0-alpha.1" }
1919
clap = { workspace = true }
2020
anyhow = "1"

0 commit comments

Comments
 (0)