chore: Fix latest Clippy warnings
This commit is contained in:
parent
487017e7c5
commit
dde21a2a60
|
@ -2934,7 +2934,7 @@ impl<'a, 'gc, 'gc_context> Activation<'a, 'gc, 'gc_context> {
|
||||||
"Target not found: Target=\"{}\" Base=\"{}\"",
|
"Target not found: Target=\"{}\" Base=\"{}\"",
|
||||||
target,
|
target,
|
||||||
match &path {
|
match &path {
|
||||||
Some(p) => &*p,
|
Some(p) => p,
|
||||||
None => WStr::from_units(b"?"),
|
None => WStr::from_units(b"?"),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -816,10 +816,10 @@ pub fn duplicate_movie_clip_with_bias<'gc>(
|
||||||
parent.replace_at_depth(&mut activation.context, new_clip, depth);
|
parent.replace_at_depth(&mut activation.context, new_clip, depth);
|
||||||
|
|
||||||
// Copy display properties from previous clip to new clip.
|
// 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(
|
new_clip.set_color_transform(
|
||||||
activation.context.gc_context,
|
activation.context.gc_context,
|
||||||
&*movie_clip.base().color_transform(),
|
movie_clip.base().color_transform(),
|
||||||
);
|
);
|
||||||
new_clip.as_movie_clip().unwrap().set_clip_event_handlers(
|
new_clip.as_movie_clip().unwrap().set_clip_event_handlers(
|
||||||
activation.context.gc_context,
|
activation.context.gc_context,
|
||||||
|
|
|
@ -86,7 +86,7 @@ impl<'gc> TObject<'gc> for ProxyObject<'gc> {
|
||||||
return Ok(Value::Undefined);
|
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(
|
fn set_property_local(
|
||||||
|
|
|
@ -493,7 +493,7 @@ pub fn render_base<'gc>(this: DisplayObject<'gc>, context: &mut RenderContext<'_
|
||||||
if this.maskee().is_some() {
|
if this.maskee().is_some() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
context.transform_stack.push(&*this.base().transform());
|
context.transform_stack.push(this.base().transform());
|
||||||
|
|
||||||
let mask = this.masker();
|
let mask = this.masker();
|
||||||
let mut mask_transform = crate::transform::Transform::default();
|
let mut mask_transform = crate::transform::Transform::default();
|
||||||
|
|
|
@ -443,7 +443,7 @@ impl<'gc> TDisplayObject<'gc> for Video<'gc> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
context.transform_stack.push(&*self.base().transform());
|
context.transform_stack.push(self.base().transform());
|
||||||
|
|
||||||
let read = self.0.read();
|
let read = self.0.read();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue