mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 21:11:00 +00:00
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:
parent
d57b83fa08
commit
4569b7eca6
3 changed files with 4 additions and 4 deletions
|
@ -477,7 +477,7 @@ impl RaptorqDec {
|
||||||
state
|
state
|
||||||
.repair_packets
|
.repair_packets
|
||||||
.entry(this_seq)
|
.entry(this_seq)
|
||||||
.or_insert_with(Vec::new)
|
.or_default()
|
||||||
.push(RepairPacketItem {
|
.push(RepairPacketItem {
|
||||||
payload_id: id,
|
payload_id: id,
|
||||||
payload: payload[7..].to_vec(), // without PayloadId
|
payload: payload[7..].to_vec(), // without PayloadId
|
||||||
|
|
|
@ -53,7 +53,7 @@ fn initialize_logging(envvar_name: &str) -> Result<(), Error> {
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> Result<(), Error> {
|
async fn main() -> Result<(), Error> {
|
||||||
let args = Args::parse();
|
let args = Args::parse();
|
||||||
let server = Server::spawn(|stream| Handler::new(stream));
|
let server = Server::spawn(Handler::new);
|
||||||
|
|
||||||
initialize_logging("WEBRTCSINK_SIGNALLING_SERVER_LOG")?;
|
initialize_logging("WEBRTCSINK_SIGNALLING_SERVER_LOG")?;
|
||||||
|
|
||||||
|
|
|
@ -292,11 +292,11 @@ impl Handler {
|
||||||
);
|
);
|
||||||
self.consumer_sessions
|
self.consumer_sessions
|
||||||
.entry(consumer_id.to_string())
|
.entry(consumer_id.to_string())
|
||||||
.or_insert_with(HashSet::new)
|
.or_default()
|
||||||
.insert(session_id.clone());
|
.insert(session_id.clone());
|
||||||
self.producer_sessions
|
self.producer_sessions
|
||||||
.entry(producer_id.to_string())
|
.entry(producer_id.to_string())
|
||||||
.or_insert_with(HashSet::new)
|
.or_default()
|
||||||
.insert(session_id.clone());
|
.insert(session_id.clone());
|
||||||
self.items.push_back((
|
self.items.push_back((
|
||||||
consumer_id.to_string(),
|
consumer_id.to_string(),
|
||||||
|
|
Loading…
Reference in a new issue