Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Oct 30, 2024
1 parent d1fc5d5 commit 223ec01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rust/src/vello_device/no_winit.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
use crate::graphics::DeviceDriver;

use savvy::savvy_err;

pub struct VelloGraphicsDevice {}

impl VelloGraphicsDevice {
pub(crate) fn new(filename: &str, _width: f64, _height: f64) -> savvy::Result<Self> {
Err("This method is not supported on macOS".into())
Err(savvy_err!("This method is not supported on macOS"))
}
}

Expand All @@ -14,6 +16,6 @@ impl DeviceDriver for VelloGraphicsDevice {
device_descriptor: crate::graphics::DeviceDescriptor,
device_name: &'static str,
) -> savvy::Result<()> {
Err("This method is not supported on macOS".into())
Err(savvy_err!("This method is not supported on macOS"))
}
}

0 comments on commit 223ec01

Please sign in to comment.