Skip to content

Commit

Permalink
chore: Drop useless allow_unused
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaDve committed Dec 23, 2022
1 parent d08f522 commit dec2d69
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/element_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ impl ElementPropertiesBuilder {
}

#[allow(clippy::needless_pass_by_value)]
pub fn field<T: ToSendValue>(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
}
Expand Down
1 change: 0 additions & 1 deletion src/screencast_session/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pub struct Stream {
source_type: Option<SourceType>,
}

#[allow(dead_code)]
impl Stream {
pub fn node_id(&self) -> u32 {
self.node_id
Expand Down

0 comments on commit dec2d69

Please sign in to comment.