Skip to content

Commit

Permalink
Change order of attributes and doc comments
Browse files Browse the repository at this point in the history
This brings the style used here in line with all the other code in the
Fornjot codebase.
  • Loading branch information
hannobraun committed Sep 2, 2022
1 parent 22dc43b commit c2c41c5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/fj-viewer/src/graphics/renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -669,24 +669,24 @@ impl Renderer {
/// Error describing the set of render surface initialization errors
#[derive(Error, Debug)]
pub enum InitError {
#[error("I/O error: {0}")]
/// General IO error
#[error("I/O error: {0}")]
Io(#[from] io::Error),

#[error("Error request adapter")]
/// Graphics accelerator acquisition error
#[error("Error request adapter")]
RequestAdapter,

#[error("Error requesting device: {0}")]
/// Device request errors
///
/// See: [wgpu::RequestDeviceError](https://docs.rs/wgpu/latest/wgpu/struct.RequestDeviceError.html)
#[error("Error requesting device: {0}")]
RequestDevice(#[from] wgpu::RequestDeviceError),

#[error("Error loading font: {0}")]
/// Error loading font
///
/// See: [ab_glyph::InvalidFont](https://docs.rs/ab_glyph/latest/ab_glyph/struct.InvalidFont.html)
#[error("Error loading font: {0}")]
InvalidFont(#[from] InvalidFont),
}

Expand All @@ -695,14 +695,14 @@ pub enum InitError {
/// Describes errors related to non initialization graphics errors.
#[derive(Error, Debug)]
pub enum DrawError {
#[error("Error acquiring output surface: {0}")]
/// Surface drawing error.
///
/// See - [wgpu::SurfaceError](https://docs.rs/wgpu/latest/wgpu/enum.SurfaceError.html)
#[error("Error acquiring output surface: {0}")]
Surface(#[from] wgpu::SurfaceError),

#[error("Error drawing text: {0}")]
/// Text rasterisation error.
#[error("Error drawing text: {0}")]
Text(String),
}

Expand Down

0 comments on commit c2c41c5

Please sign in to comment.