chore: Fix latest Clippy warnings

This commit is contained in:
Aaron Hill 2022-06-07 17:28:05 -04:00 committed by relrelb
parent 487017e7c5
commit dde21a2a60
5 changed files with 6 additions and 6 deletions

View File

@ -2934,7 +2934,7 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
"Target not found: Target=\"{}\" Base=\"{}\"",
target,
match &path {
Some(p) => &*p,
Some(p) => p,
None => WStr::from_units(b"?"),
}
);

View File

@ -816,10 +816,10 @@ pub fn duplicate_movie_clip_with_bias<'gc>(
parent.replace_at_depth(&mut activation.context, new_clip, depth);
// Copy display properties from previous clip to new clip.
new_clip.set_matrix(activation.context.gc_context, &*movie_clip.base().matrix());
new_clip.set_matrix(activation.context.gc_context, movie_clip.base().matrix());
new_clip.set_color_transform(
activation.context.gc_context,
&*movie_clip.base().color_transform(),
movie_clip.base().color_transform(),
);
new_clip.as_movie_clip().unwrap().set_clip_event_handlers(
activation.context.gc_context,

View File

@ -86,7 +86,7 @@ impl<'gc> TObject<'gc> for ProxyObject<'gc> {
return Ok(Value::Undefined);
}
return Err(format!("Cannot get undefined property {:?}", multiname.local_name()).into());
Err(format!("Cannot get undefined property {:?}", multiname.local_name()).into())
}
fn set_property_local(

View File

@ -493,7 +493,7 @@ pub fn render_base<'gc>(this: DisplayObject<'gc>, context: &mut RenderContext<'_
if this.maskee().is_some() {
return;
}
context.transform_stack.push(&*this.base().transform());
context.transform_stack.push(this.base().transform());
let mask = this.masker();
let mut mask_transform = crate::transform::Transform::default();

View File

@ -443,7 +443,7 @@ impl<'gc> TDisplayObject<'gc> for Video<'gc> {
return;
}
context.transform_stack.push(&*self.base().transform());
context.transform_stack.push(self.base().transform());
let read = self.0.read();