From ebb65611a03c216cb8f97081745f9f7c202f1ed6 Mon Sep 17 00:00:00 2001 From: pln Date: Thu, 20 Apr 2017 00:47:25 +0200 Subject: [PATCH] fixed Max bug spotted by Mr Japaric --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 4fb110c8c9..8555682419 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -148,7 +148,7 @@ impl Resource> { #[cfg(not(thumbv6m))] pub fn mock(&'static self, _prio: &C, _curr_ceil: &C, f: F) -> R where - F: FnOnce(Ref, &C) -> R, + F: FnOnce(Ref, &C<>::Output>) -> R, PRIOTASK: Unsigned, CURRCEIL: Unsigned, CEILING: GreaterThanOrEqual + Max + Level + Unsigned,