avm1: Remove reduntant new_ret_no_self annotation

Per https://rust-lang.github.io/rust-clippy/master/#new_ret_no_self,
`new_ret_no_self` applies only to functions named `new`.
`TObject::create_bare_object` used to be named `new`, but was renamed
in 79af3ffe44.
This commit is contained in:
relrelb 2021-04-17 00:27:44 +03:00 committed by Mike Welsh
parent 1f934c5fc6
commit 4d41297b04
13 changed files with 0 additions and 13 deletions

View File

@ -683,7 +683,6 @@ impl<'gc> TObject<'gc> for FunctionObject<'gc> {
self.base.call_setter(name, value, activation)
}
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -115,7 +115,6 @@ impl<'gc> TObject<'gc> for ColorTransformObject<'gc> {
Some(*self)
}
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -61,7 +61,6 @@ impl<'gc> DateObject<'gc> {
impl<'gc> TObject<'gc> for DateObject<'gc> {
impl_custom_object!(base);
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -473,7 +473,6 @@ impl<'gc> TObject<'gc> for ScriptObject<'gc> {
}
}
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -62,7 +62,6 @@ impl<'gc> SharedObject<'gc> {
impl<'gc> TObject<'gc> for SharedObject<'gc> {
impl_custom_object!(base);
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -122,7 +122,6 @@ impl<'gc> SoundObject<'gc> {
impl<'gc> TObject<'gc> for SoundObject<'gc> {
impl_custom_object!(base);
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -279,7 +279,6 @@ impl<'gc> TObject<'gc> for StageObject<'gc> {
self.0.read().base.call_setter(name, value, activation)
}
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -140,7 +140,6 @@ impl<'gc> TObject<'gc> for SuperObject<'gc> {
self.0.read().child.call_setter(name, value, activation)
}
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -83,7 +83,6 @@ impl<'gc> TObject<'gc> for TransformObject<'gc> {
Ok(this.into())
}
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -118,7 +118,6 @@ impl fmt::Debug for ValueObject<'_> {
impl<'gc> TObject<'gc> for ValueObject<'gc> {
impl_custom_object!(base);
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -102,7 +102,6 @@ impl<'gc> TObject<'gc> for XmlAttributesObject<'gc> {
self.base().call_setter(name, value, activation)
}
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -102,7 +102,6 @@ impl<'gc> TObject<'gc> for XmlIdMapObject<'gc> {
self.base().call_setter(name, value, activation)
}
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,

View File

@ -74,7 +74,6 @@ impl fmt::Debug for XmlObject<'_> {
impl<'gc> TObject<'gc> for XmlObject<'gc> {
impl_custom_object!(base);
#[allow(clippy::new_ret_no_self)]
fn create_bare_object(
&self,
activation: &mut Activation<'_, 'gc, '_>,