rustfmt (nalgebra)

This commit is contained in:
Andreas Longva 2021-01-26 09:12:06 +01:00
parent 5dfe06897f
commit 646f62a293
1 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ pub struct MatrixParameters<NParameters, R, C> {
/// ranges such as `5 ..= 6`. The latter example corresponds to dimensions from (inclusive)
/// `Dynamic::new(5)` to `Dynamic::new(6)` (inclusive).
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct DimRange<D=Dynamic>(RangeInclusive<D>);
pub struct DimRange<D = Dynamic>(RangeInclusive<D>);
impl<D: Dim> DimRange<D> {
/// The lower bound for dimensions generated.
@ -204,7 +204,7 @@ impl From<RangeInclusive<usize>> for DimRange<Dynamic> {
impl<D: Dim> DimRange<D> {
/// Converts the `DimRange` into an instance of `RangeInclusive`.
pub fn to_range_inclusive(&self) -> RangeInclusive<usize> {
self.lower_bound().value() ..= self.upper_bound().value()
self.lower_bound().value()..=self.upper_bound().value()
}
}