Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nshyrei authored and simnalamburt committed Sep 28, 2024
1 parent e4e1d66 commit 30bd6f0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions obj-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub mod raw;

pub use crate::error::{LoadError, LoadErrorKind, ObjError, ObjResult};

use crate::error::{make_error};
use crate::error::make_error;
use crate::raw::object::Polygon;
use num_traits::FromPrimitive;
use std::collections::hash_map::{Entry, HashMap};
Expand Down Expand Up @@ -207,7 +207,10 @@ impl<I: FromPrimitive> FromRawVertex<I> for Position {
let mut map = |pi: usize| -> ObjResult<()> {
ib.push(match I::from_usize(pi) {
Some(val) => val,
None => make_error!(IndexOutOfRange, number_of_polygons_is_too_large_error_message::<I>(ib.len())),
None => make_error!(
IndexOutOfRange,
number_of_polygons_is_too_large_error_message::<I>(ib.len())
),
});
Ok(())
};
Expand Down

0 comments on commit 30bd6f0

Please sign in to comment.