From 3ddd5d9d2b84d72cf8c6c05f71a419f306f9f229 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Wed, 29 Jul 2020 13:59:14 +0600 Subject: [PATCH] TFix naming in UpState --- src/utils/up_state.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/utils/up_state.rs b/src/utils/up_state.rs index a612dcf5..6f6385c6 100644 --- a/src/utils/up_state.rs +++ b/src/utils/up_state.rs @@ -12,14 +12,14 @@ use std::ops::Add; /// /// [`Generic`]: https://docs.rs/frunk/latest/frunk/generic/trait.Generic.html pub trait UpState: Sized { - fn up(src: T, field: F) -> Self + fn up(src: Src, field: F) -> Self where - T: Generic, - Self: Generic::Repr as Add>>::Output>, - ::Repr: Add>, + Src: Generic, + Self: Generic::Repr as Add>>::Output>, + ::Repr: Add>, { from_generic(into_generic(src) + h_cons(field, HNil)) } } -impl UpState for T {} +impl UpState for Dst {}