Skip to content

Commit

Permalink
Replace type alias with a 'use'. (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz authored Jul 18, 2024
1 parent 99a4e5a commit f305467
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
### Modified

- `TypedShape::Custom(u32)` is now `TypedShape::Custom(&dyn Shape)`.
- `Real` is now exposed through a `use` statement,
so that an indirection is removed in documentation:
previous occurrences of `Real` now show `f32` or `f64`.
- Significantly improved the general stability of mesh/mesh intersection calculation.

## v0.16.1
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ pub mod utils;
mod real {
/// The scalar type used throughout this crate.
#[cfg(feature = "f64")]
pub type Real = f64;
pub use f64 as Real;

/// The scalar type used throughout this crate.
#[cfg(feature = "f32")]
pub type Real = f32;
pub use f32 as Real;
}

/// Compilation flags dependent aliases for mathematical types.
Expand Down

0 comments on commit f305467

Please sign in to comment.