mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-11-27 14:04:56 +01:00
fixed Max bug spotted by Mr Japaric
This commit is contained in:
parent
586f759c33
commit
ebb65611a0
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ impl<T, CEILING> Resource<T, C<CEILING>> {
|
||||||
#[cfg(not(thumbv6m))]
|
#[cfg(not(thumbv6m))]
|
||||||
pub fn mock<R, PRIOTASK, CURRCEIL, F>(&'static self, _prio: &C<PRIOTASK>, _curr_ceil: &C<CURRCEIL>, f: F) -> R
|
pub fn mock<R, PRIOTASK, CURRCEIL, F>(&'static self, _prio: &C<PRIOTASK>, _curr_ceil: &C<CURRCEIL>, f: F) -> R
|
||||||
where
|
where
|
||||||
F: FnOnce(Ref<T>, &C<CEILING>) -> R,
|
F: FnOnce(Ref<T>, &C<<CEILING as Max<CURRCEIL>>::Output>) -> R,
|
||||||
PRIOTASK: Unsigned,
|
PRIOTASK: Unsigned,
|
||||||
CURRCEIL: Unsigned,
|
CURRCEIL: Unsigned,
|
||||||
CEILING: GreaterThanOrEqual<PRIOTASK> + Max<CURRCEIL> + Level + Unsigned,
|
CEILING: GreaterThanOrEqual<PRIOTASK> + Max<CURRCEIL> + Level + Unsigned,
|
||||||
|
|
Loading…
Reference in a new issue