aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/buffer_source.rs
diff options
context:
space:
mode:
authorRustAndMetal <111676747+RustAndMetal@users.noreply.github.com>2024-03-18 09:33:43 +0100
committerGitHub <noreply@github.com>2024-03-18 08:33:43 +0000
commitf6a975fc58557b6267ead065a6025ba83ae27474 (patch)
treea148c1703a652d13cabb61fbb883c4045fcef853 /components/script/dom/bindings/buffer_source.rs
parent1ab8fa2895bd2339981e0be52591f38ad834ed21 (diff)
downloadservo-f6a975fc58557b6267ead065a6025ba83ae27474.tar.gz
servo-f6a975fc58557b6267ead065a6025ba83ae27474.zip
clippy: Fix several warnings (#31710)
Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
Diffstat (limited to 'components/script/dom/bindings/buffer_source.rs')
-rw-r--r--components/script/dom/bindings/buffer_source.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/buffer_source.rs b/components/script/dom/bindings/buffer_source.rs
index 80fa00e408b..a01a52d37c5 100644
--- a/components/script/dom/bindings/buffer_source.rs
+++ b/components/script/dom/bindings/buffer_source.rs
@@ -76,7 +76,7 @@ where
{
let heap_buffer_source = match init {
HeapTypedArrayInit::Buffer(buffer_source) => HeapBufferSource {
- buffer_source: buffer_source,
+ buffer_source,
phantom: PhantomData::default(),
},
HeapTypedArrayInit::Info { len, cx } => {