Code hygiene.

This commit is contained in:
Dimitri Sabadie 2021-02-28 19:02:54 +01:00
parent 80fb6fbe28
commit 3d43e4c644
No known key found for this signature in database
GPG Key ID: B313786A66884DCD

View File

@ -18,8 +18,11 @@ use serde_derive::{Deserialize, Serialize};
/// ///
/// [`Interpolation`]: crate::interpolation::Interpolation /// [`Interpolation`]: crate::interpolation::Interpolation
#[derive(Copy, Clone, Debug, Eq, PartialEq)] #[derive(Copy, Clone, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serialization", derive(Deserialize, Serialize))] #[cfg_attr(
#[cfg_attr(feature = "serialization", serde(rename_all = "snake_case"))] feature = "serialization",
derive(Deserialize, Serialize),
serde(rename_all = "snake_case")
)]
pub struct Key<T, V> { pub struct Key<T, V> {
/// Interpolation parameter at which the [`Key`] should be reached. /// Interpolation parameter at which the [`Key`] should be reached.
pub t: T, pub t: T,