Fix various new 1.73 clippy warnings

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1347>
This commit is contained in:
Sebastian Dröge 2023-10-03 17:47:30 +03:00
parent d57b83fa08
commit 4569b7eca6
3 changed files with 4 additions and 4 deletions

View file

@ -477,7 +477,7 @@ impl RaptorqDec {
state
.repair_packets
.entry(this_seq)
.or_insert_with(Vec::new)
.or_default()
.push(RepairPacketItem {
payload_id: id,
payload: payload[7..].to_vec(), // without PayloadId

View file

@ -53,7 +53,7 @@ fn initialize_logging(envvar_name: &str) -> Result<(), Error> {
#[tokio::main]
async fn main() -> Result<(), Error> {
let args = Args::parse();
let server = Server::spawn(|stream| Handler::new(stream));
let server = Server::spawn(Handler::new);
initialize_logging("WEBRTCSINK_SIGNALLING_SERVER_LOG")?;

View file

@ -292,11 +292,11 @@ impl Handler {
);
self.consumer_sessions
.entry(consumer_id.to_string())
.or_insert_with(HashSet::new)
.or_default()
.insert(session_id.clone());
self.producer_sessions
.entry(producer_id.to_string())
.or_insert_with(HashSet::new)
.or_default()
.insert(session_id.clone());
self.items.push_back((
consumer_id.to_string(),