From 56d2fda09b2c1a3697a4558d2e447e9becc5e498 Mon Sep 17 00:00:00 2001 From: Xavier L'Heureux Date: Sat, 14 Mar 2020 00:24:09 -0400 Subject: [PATCH] InputPin instead of OutputPin for compatibility shim The OldInputPin required OutputPin instead of InputPin for the new impl. Fix the trait bound. --- src/digital/v1_compat.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/digital/v1_compat.rs b/src/digital/v1_compat.rs index 856cbb9fc..673ea9ca2 100644 --- a/src/digital/v1_compat.rs +++ b/src/digital/v1_compat.rs @@ -113,7 +113,7 @@ pub struct OldInputPin { impl OldInputPin where - T: v2::OutputPin, + T: v2::InputPin, E: core::fmt::Debug, { /// Create an `OldInputPin` wrapper around a `v2::InputPin`.