mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-17 23:38:06 +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:
@@ -456,7 +456,7 @@ pub struct ImageSlice<'a, Pixel> {
|
||||
pub data: &'a (),
|
||||
}
|
||||
|
||||
impl<P: StaticTypeSized> StaticType for ImageSlice<'_, P> {
|
||||
unsafe impl<P: StaticTypeSized> StaticType for ImageSlice<'_, P> {
|
||||
type Static = ImageSlice<'static, P::Static>;
|
||||
}
|
||||
|
||||
@@ -585,7 +585,7 @@ mod image {
|
||||
pub data: Vec<P>,
|
||||
}
|
||||
|
||||
impl<P: StaticTypeSized + Pixel> StaticType for Image<P>
|
||||
unsafe impl<P: StaticTypeSized + Pixel> StaticType for Image<P>
|
||||
where
|
||||
P::Static: Pixel,
|
||||
{
|
||||
@@ -770,7 +770,7 @@ mod image {
|
||||
}
|
||||
}
|
||||
|
||||
impl<P: StaticTypeSized + Pixel> StaticType for ImageFrame<P>
|
||||
unsafe impl<P: StaticTypeSized + Pixel> StaticType for ImageFrame<P>
|
||||
where
|
||||
P::Static: Pixel,
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user