Skip to content

Commit

Permalink
Fix new clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
oowekyala committed May 15, 2024
1 parent 09b3470 commit 42af7f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,10 @@ extern crate array_macro;
#[macro_use]
extern crate assert_matches;
#[macro_use]
extern crate index_vec;
#[macro_use]
extern crate log;
#[cfg(feature = "parallel-runtime")]
extern crate rayon;
#[macro_use]
extern crate smallvec;
#[macro_use]
extern crate static_assertions;
#[macro_use]
extern crate cfg_if;
Expand Down
13 changes: 6 additions & 7 deletions src/scheduler/assembly_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ where
}

/// Final result of the assembly of a reactor.
pub struct FinishedReactor<'x, S>(AssemblyCtx<'x, S>, S)
pub struct FinishedReactor<S>(S)
where
S: ReactorInitializer;

Expand Down Expand Up @@ -147,9 +147,9 @@ where
pub fn assemble(
self,
build_reactor_tree: impl FnOnce(Self) -> AssemblyResult<AssemblyIntermediate<'x, S>>,
) -> AssemblyResult<FinishedReactor<'x, S>> {
let AssemblyIntermediate(ich, reactor) = build_reactor_tree(self)?;
Ok(FinishedReactor(ich, reactor))
) -> AssemblyResult<FinishedReactor<S>> {
let AssemblyIntermediate(_, reactor) = build_reactor_tree(self)?;
Ok(FinishedReactor(reactor))
}

/// Innermost function.
Expand Down Expand Up @@ -303,13 +303,12 @@ where
}
}

impl<S> FinishedReactor<'_, S>
impl<S> FinishedReactor<S>
where
S: ReactorInitializer,
{
fn finish(self) -> S {
let FinishedReactor(_, reactor) = self;
reactor
self.0
}
}

Expand Down
1 change: 0 additions & 1 deletion src/scheduler/dependencies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ enum EdgeWeight {
/// if they're labeled `Default`, they're trigger dependencies,
/// otherwise use dependencies.
Default,
///
Use,
}

Expand Down

0 comments on commit 42af7f7

Please sign in to comment.