diff options
author | 石蕊 (Pi-Cla) <pirateclip@protonmail.com> | 2024-07-09 04:47:43 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-09 04:47:43 +0000 |
commit | f29dd64a7b633e844756e6eecf9e05e0b327fc51 (patch) | |
tree | 728bc5da636d9c69fe2d217184e7ccecc4ae017f /components/script/dom/htmlmediaelement.rs | |
parent | 4e1f623666e6ba3ffe7fe2d86564885260d8f65a (diff) | |
download | servo-f29dd64a7b633e844756e6eecf9e05e0b327fc51.tar.gz servo-f29dd64a7b633e844756e6eecf9e05e0b327fc51.zip |
Fix more clippy (#32740)
Diffstat (limited to 'components/script/dom/htmlmediaelement.rs')
-rw-r--r-- | components/script/dom/htmlmediaelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlmediaelement.rs b/components/script/dom/htmlmediaelement.rs index 59f38e42c17..997fa3c849d 100644 --- a/components/script/dom/htmlmediaelement.rs +++ b/components/script/dom/htmlmediaelement.rs @@ -780,7 +780,7 @@ impl HTMLMediaElement { // Step 9.obj. Mode::Object => { // Step 9.obj.1. - *self.current_src.borrow_mut() = "".to_owned(); + "".clone_into(&mut self.current_src.borrow_mut()); // Step 9.obj.2. // FIXME(nox): The rest of the steps should be ran in parallel. |