Skip to content

Commit

Permalink
Rename window::Error to WindowError
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Jun 19, 2023
1 parent 8232b3d commit 8cf90ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/fj-window/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ pub fn display(model: Model, invert_zoom: bool) -> Result<(), Error> {
pub enum Error {
/// Error initializing window
#[error("Error initializing window")]
WindowInit(#[from] window::Error),
WindowInit(#[from] window::WindowError),

/// Error initializing graphics
#[error("Error initializing graphics")]
Expand Down
4 changes: 2 additions & 2 deletions crates/fj-window/src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pub struct Window(winit::window::Window);

impl Window {
/// Create an instance of `Window` from the given `EventLoop`
pub fn new<T>(event_loop: &EventLoop<T>) -> Result<Self, Error> {
pub fn new<T>(event_loop: &EventLoop<T>) -> Result<Self, WindowError> {
let window = WindowBuilder::new()
.with_title("Fornjot")
.with_maximized(true)
Expand Down Expand Up @@ -57,4 +57,4 @@ impl Screen for Window {
/// Error initializing window
#[derive(Debug, thiserror::Error)]
#[error("Error initializing window")]
pub struct Error(#[from] pub winit::error::OsError);
pub struct WindowError(#[from] pub winit::error::OsError);

0 comments on commit 8cf90ab

Please sign in to comment.