Code hygiene.
This commit is contained in:
parent
80fb6fbe28
commit
3d43e4c644
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user