mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
Bump version of dyn-any to address missues which could lead to ub (#1145)
* Make StaticType trait unsafe * Mark StaticTypeSized and StaticTypeClone as unsafe as well * Update dyn-any dependency * Update manifest links
This commit is contained in:
committed by
Keavon Chambers
parent
9db5ad43bf
commit
1d6c4f13dd
@@ -358,10 +358,6 @@ pub struct BlendNode<BlendMode, Opacity> {
|
||||
opacity: Opacity,
|
||||
}
|
||||
|
||||
impl<Opacity: dyn_any::StaticTypeSized, Blend: dyn_any::StaticTypeSized> StaticType for BlendNode<Blend, Opacity> {
|
||||
type Static = BlendNode<Blend::Static, Opacity::Static>;
|
||||
}
|
||||
|
||||
#[node_macro::node_fn(BlendNode)]
|
||||
fn blend_node(input: (Color, Color), blend_mode: BlendMode, opacity: f64) -> Color {
|
||||
let opacity = opacity / 100.;
|
||||
|
||||
Reference in New Issue
Block a user