Skip to content

Commit

Permalink
Merge #600
Browse files Browse the repository at this point in the history
600: make GeoFloat: + Debug r=frewsxcv a=michaelkirk

- [x] I agree to follow the project's [code of conduct](https://github.com/georust/geo/blob/master/CODE_OF_CONDUCT.md).
- [x] I added an entry to `CHANGES.md` if knowledge of this change could be valuable to users.
---

This would be a breaking change, but `GeoFloat` hasn't been released yet.


Co-authored-by: Michael Kirk <michael.code@endoftheworl.de>
  • Loading branch information
bors[bot] and michaelkirk committed Jan 11, 2021
2 parents cd3e60e + e0ea65b commit d81a916
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions geo/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,11 @@ pub mod prelude {
/// })
/// }
/// ```
pub trait GeoFloat: num_traits::Float + CoordinateType + algorithm::kernels::HasKernel {}
impl<T> GeoFloat for T where T: num_traits::Float + CoordinateType + algorithm::kernels::HasKernel {}
pub trait GeoFloat:
num_traits::Float + CoordinateType + algorithm::kernels::HasKernel + std::fmt::Debug
{
}
impl<T> GeoFloat for T where
T: num_traits::Float + CoordinateType + algorithm::kernels::HasKernel + std::fmt::Debug
{
}

0 comments on commit d81a916

Please sign in to comment.