diff --git a/core/src/avm1/activation.rs b/core/src/avm1/activation.rs index 25ff6336e..bd4fb18c1 100644 --- a/core/src/avm1/activation.rs +++ b/core/src/avm1/activation.rs @@ -2259,7 +2259,6 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> { Ok(FrameControl::Continue) } - #[allow(unused_variables)] fn action_throw(&mut self) -> Result, Error<'gc>> { let value = self.context.avm1.pop(); avm_debug!( diff --git a/core/src/avm2/activation.rs b/core/src/avm2/activation.rs index e268f4bed..553e1d370 100644 --- a/core/src/avm2/activation.rs +++ b/core/src/avm2/activation.rs @@ -2789,7 +2789,6 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> { Ok(FrameControl::Continue) } - #[allow(unused_variables)] #[cfg(avm_debug)] fn op_debug( &mut self, @@ -2810,19 +2809,17 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> { Ok(FrameControl::Continue) } - #[allow(unused_variables)] #[cfg(not(avm_debug))] fn op_debug( &mut self, - method: Gc<'gc, BytecodeMethod<'gc>>, - is_local_register: bool, - register_name: Index, - register: u8, + _method: Gc<'gc, BytecodeMethod<'gc>>, + _is_local_register: bool, + _register_name: Index, + _register: u8, ) -> Result, Error> { Ok(FrameControl::Continue) } - #[allow(unused_variables)] #[cfg(avm_debug)] fn op_debug_file( &mut self, @@ -2836,17 +2833,15 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> { Ok(FrameControl::Continue) } - #[allow(unused_variables)] #[cfg(not(avm_debug))] fn op_debug_file( &mut self, - method: Gc<'gc, BytecodeMethod<'gc>>, - file_name: Index, + _method: Gc<'gc, BytecodeMethod<'gc>>, + _file_name: Index, ) -> Result, Error> { Ok(FrameControl::Continue) } - #[allow(unused_variables)] fn op_debug_line(&mut self, line_num: u32) -> Result, Error> { avm_debug!(self.avm2(), "Line: {}", line_num); diff --git a/core/src/display_object.rs b/core/src/display_object.rs index 7cce53af9..cc6a018d1 100644 --- a/core/src/display_object.rs +++ b/core/src/display_object.rs @@ -1115,8 +1115,7 @@ pub trait TDisplayObject<'gc>: } /// Called when this object should be replaced by a PlaceObject tag. - #[allow(unused_variables)] - fn replace_with(&self, context: &mut UpdateContext<'_, 'gc, '_>, id: CharacterId) { + fn replace_with(&self, _context: &mut UpdateContext<'_, 'gc, '_>, _id: CharacterId) { // Noop for most symbols; only shapes can replace their innards with another graphic. }