mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
clippy: Fix let_and_return warnings (#31964)
This commit is contained in:
parent
0da2508e4d
commit
c7b73e1ef4
8 changed files with 17 additions and 31 deletions
|
@ -72,7 +72,7 @@ impl RTCDataChannel {
|
|||
.expect("Expected data channel id"),
|
||||
);
|
||||
|
||||
let channel = RTCDataChannel {
|
||||
RTCDataChannel {
|
||||
eventtarget: EventTarget::new_inherited(),
|
||||
servo_media_id,
|
||||
peer_connection: Dom::from_ref(peer_connection),
|
||||
|
@ -85,9 +85,7 @@ impl RTCDataChannel {
|
|||
id: options.id,
|
||||
ready_state: Cell::new(RTCDataChannelState::Connecting),
|
||||
binary_type: DomRefCell::new(DOMString::from("blob")),
|
||||
};
|
||||
|
||||
channel
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue