Skip to content

Commit 6faef0d

Browse files
committed
Format
1 parent c649409 commit 6faef0d

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/scheduler/assembly_impl.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ where
264264
) -> AssemblyResult<AssemblyIntermediate<'x, S>>
265265
where
266266
Sub: ReactorInitializer + 'static,
267-
// we can't use impl Fn(...) because we want to specify explicit type parameters in the calle
267+
// we can't use impl Fn(...) because we want to specify explicit type parameters in the calle
268268
F: FnOnce(Self, &mut Vec<Sub>) -> AssemblyResult<AssemblyIntermediate<'x, S>>,
269269
A: Fn(/*bank_index:*/ usize) -> Sub::Params,
270270
{
@@ -368,8 +368,8 @@ impl<S: ReactorInitializer> DependencyDeclarator<'_, '_, S> {
368368
#[inline]
369369
pub fn bind_ports_zip<'a, T: Sync + 'a>(
370370
&mut self,
371-
upstream: impl Iterator<Item=&'a mut Port<T>>,
372-
downstream: impl Iterator<Item=&'a mut Port<T>>,
371+
upstream: impl Iterator<Item = &'a mut Port<T>>,
372+
downstream: impl Iterator<Item = &'a mut Port<T>>,
373373
) -> AssemblyResult<()> {
374374
for (upstream, downstream) in upstream.zip(downstream) {
375375
self.bind_ports(upstream, downstream)?;
@@ -380,8 +380,8 @@ impl<S: ReactorInitializer> DependencyDeclarator<'_, '_, S> {
380380
#[inline]
381381
pub fn bind_ports_iterated<'a, T: Sync + 'a>(
382382
&mut self,
383-
upstream: impl Iterator<Item=&'a mut Port<T>>,
384-
mut downstream: impl Iterator<Item=&'a mut Port<T>>,
383+
upstream: impl Iterator<Item = &'a mut Port<T>>,
384+
mut downstream: impl Iterator<Item = &'a mut Port<T>>,
385385
) -> AssemblyResult<()> {
386386
let mut upstream = upstream.collect::<Vec<_>>();
387387
assert!(!upstream.is_empty(), "Empty upstream!");

src/util/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ pub(crate) fn do_write<X>(
6464
write!(f, "{}", suffix)
6565
}
6666

67-
6867
/// Creates a [Duration] value using the same syntax as in LF.
6968
///
7069
/// ```
@@ -158,7 +157,6 @@ macro_rules! tag {
158157
};
159158
}
160159

161-
162160
/// Convenient macro to assert equality of the current tag.
163161
/// This is just shorthand for using `assert_eq!` with the
164162
/// syntax of [tag].

0 commit comments

Comments
 (0)