Skip to content

Commit cf7d253

Browse files
committed
cargo fmt
1 parent aa858db commit cf7d253

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/sdl2/render.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,12 @@ impl TryFrom<u32> for ScaleMode {
194194

195195
fn try_from(n: u32) -> Result<Self, Self::Error> {
196196
match n {
197-
x if x == crate::sys::SDL_ScaleMode::SDL_ScaleModeNearest as u32 => Ok(ScaleMode::Nearest),
198-
x if x == crate::sys::SDL_ScaleMode::SDL_ScaleModeLinear as u32 => Ok(ScaleMode::Linear),
197+
x if x == crate::sys::SDL_ScaleMode::SDL_ScaleModeNearest as u32 => {
198+
Ok(ScaleMode::Nearest)
199+
}
200+
x if x == crate::sys::SDL_ScaleMode::SDL_ScaleModeLinear as u32 => {
201+
Ok(ScaleMode::Linear)
202+
}
199203
x if x == crate::sys::SDL_ScaleMode::SDL_ScaleModeBest as u32 => Ok(ScaleMode::Best),
200204
_ => Err(()),
201205
}

0 commit comments

Comments
 (0)