Skip to content

Commit a5290a5

Browse files
committed
gcore: fix gcore without wgpu feature not compiling
1 parent d17debd commit a5290a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

node-graph/gcore/src/raster_types.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,11 @@ pub use cpu::CPU;
6767

6868
mod cpu {
6969
use super::*;
70-
use crate::raster_types::__private::Sealed;
7170

7271
#[derive(Clone, Debug, Default, PartialEq, Hash, DynAny)]
7372
pub struct CPU(Image<Color>);
7473

75-
impl Sealed for Raster<CPU> {}
74+
impl __private::Sealed for Raster<CPU> {}
7675

7776
impl Storage for Raster<CPU> {
7877
fn is_empty(&self) -> bool {
@@ -136,14 +135,13 @@ pub use gpu::GPU;
136135
#[cfg(feature = "wgpu")]
137136
mod gpu {
138137
use super::*;
139-
use crate::raster_types::__private::Sealed;
140138

141139
#[derive(Clone, Debug, PartialEq, Hash)]
142140
pub struct GPU {
143141
texture: wgpu::Texture,
144142
}
145143

146-
impl Sealed for Raster<GPU> {}
144+
impl __private::Sealed for Raster<GPU> {}
147145

148146
impl Storage for Raster<GPU> {
149147
fn is_empty(&self) -> bool {
@@ -166,9 +164,11 @@ mod gpu {
166164
mod gpu {
167165
use super::*;
168166

169-
#[derive(Clone, Debug)]
167+
#[derive(Clone, Debug, PartialEq, Hash)]
170168
pub struct GPU;
171169

170+
impl __private::Sealed for Raster<GPU> {}
171+
172172
impl Storage for Raster<GPU> {
173173
fn is_empty(&self) -> bool {
174174
true

0 commit comments

Comments
 (0)