mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
clippy: Fix redundant_*
warnings (#32056)
* clippy: Fix `redundant_field_names` warnings * clippy: Fix other `redundant_*` warnings * docs: Update docstring comments
This commit is contained in:
parent
e3ad76d994
commit
b3d9924396
8 changed files with 68 additions and 73 deletions
|
@ -984,7 +984,7 @@ impl HTMLMediaElement {
|
|||
SrcObject::MediaStream(ref stream) => {
|
||||
let tracks = &*stream.get_tracks();
|
||||
for (pos, track) in tracks.iter().enumerate() {
|
||||
if let Err(_) = self
|
||||
if self
|
||||
.player
|
||||
.borrow()
|
||||
.as_ref()
|
||||
|
@ -992,6 +992,7 @@ impl HTMLMediaElement {
|
|||
.lock()
|
||||
.unwrap()
|
||||
.set_stream(&track.id(), pos == tracks.len() - 1)
|
||||
.is_err()
|
||||
{
|
||||
self.queue_dedicated_media_source_failure_steps();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue