From 3d43e4c644139dc0a1ee68d32bd43b7107bf8df9 Mon Sep 17 00:00:00 2001 From: Dimitri Sabadie Date: Sun, 28 Feb 2021 19:02:54 +0100 Subject: [PATCH] Code hygiene. --- src/key.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/key.rs b/src/key.rs index ccb24b2..e366199 100644 --- a/src/key.rs +++ b/src/key.rs @@ -18,8 +18,11 @@ use serde_derive::{Deserialize, Serialize}; /// /// [`Interpolation`]: crate::interpolation::Interpolation #[derive(Copy, Clone, Debug, Eq, PartialEq)] -#[cfg_attr(feature = "serialization", derive(Deserialize, Serialize))] -#[cfg_attr(feature = "serialization", serde(rename_all = "snake_case"))] +#[cfg_attr( + feature = "serialization", + derive(Deserialize, Serialize), + serde(rename_all = "snake_case") +)] pub struct Key { /// Interpolation parameter at which the [`Key`] should be reached. pub t: T,