Skip to content

Commit

Permalink
chore: Fix clippy::needless_borrows_for_generic_args beta lint
Browse files Browse the repository at this point in the history
  • Loading branch information
torokati44 authored and Dinnerbone committed Jun 12, 2024
1 parent 6b4ee7d commit 0d25b5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/avm2/globals/flash/display/shader_parameter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub fn make_shader_parameter<'gc>(
.shaderparameter
.construct(activation, &[])?;
let type_name =
AvmString::new_utf8(activation.context.gc_context, &param_type.to_string());
AvmString::new_utf8(activation.context.gc_context, param_type.to_string());

obj.set_property(&Multiname::new(ns, "_index"), index.into(), activation)?;
obj.set_property(&Multiname::new(ns, "_type"), type_name.into(), activation)?;
Expand Down

0 comments on commit 0d25b5d

Please sign in to comment.