Skip to content

Commit fafad63

Browse files
committed
implement advanced pub/sub
1 parent 5ca29d3 commit fafad63

12 files changed

Lines changed: 777 additions & 53 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ crate-type = ["cdylib"]
3535

3636
[features]
3737
default = ["zenoh/default", "zenoh-ext"]
38+
zenoh-ext = ["dep:zenoh-ext", "zenoh-ext/unstable", "zenoh-ext/internal"]
3839

3940
[badges]
4041
maintenance = { status = "actively-developed" }

src/bytes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ downcast_or_new!(Encoding => Option<String>);
9292
#[pymethods]
9393
impl Encoding {
9494
#[new]
95-
fn new(s: Option<String>) -> PyResult<Self> {
96-
Ok(s.map_into().map(Self).unwrap_or_default())
95+
fn new(s: Option<String>) -> Self {
96+
s.map_into().map(Self).unwrap_or_default()
9797
}
9898

9999
fn with_schema(&self, schema: String) -> Self {

0 commit comments

Comments
 (0)