diff --git a/src/element_properties.rs b/src/element_properties.rs index 052ee1523..9b02f18d1 100644 --- a/src/element_properties.rs +++ b/src/element_properties.rs @@ -54,7 +54,7 @@ impl ElementPropertiesBuilder { } #[allow(clippy::needless_pass_by_value)] - pub fn field(mut self, name: &str, value: T) -> Self { + pub fn field(mut self, name: &str, value: impl ToSendValue) -> Self { self.s.set_value(name, value.to_send_value()); self } diff --git a/src/screencast_session/types.rs b/src/screencast_session/types.rs index 55670380d..036a87ce1 100644 --- a/src/screencast_session/types.rs +++ b/src/screencast_session/types.rs @@ -40,7 +40,6 @@ pub struct Stream { source_type: Option, } -#[allow(dead_code)] impl Stream { pub fn node_id(&self) -> u32 { self.node_id