Skip to content

Commit b1631c7

Browse files
committed
Adhere to nightly lints.
1 parent c7a3932 commit b1631c7

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/delta.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ use nalgebra::{Point3, RealField, Unit, UnitQuaternion, Vector3};
33
use simba::scalar::SubsetOf;
44

55
/// Delta transform from initial to final [`Frame`].
6-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
6+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
77
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
88
pub enum Delta<N: Copy + RealField> {
99
/// Yields frame as identity transform (default).
10+
#[default]
1011
Frame,
1112
/// Orbits target around eye by pitch and yaw preserving roll attitude aka first person view.
1213
///
@@ -163,12 +164,6 @@ impl<N: Copy + RealField> Delta<N> {
163164
}
164165
}
165166

166-
impl<N: Copy + RealField> Default for Delta<N> {
167-
fn default() -> Self {
168-
Self::Frame
169-
}
170-
}
171-
172167
#[cfg(feature = "rkyv")]
173168
impl<N: Copy + RealField> rkyv::Archive for Delta<N> {
174169
type Archived = Self;

0 commit comments

Comments
 (0)