Skip to content

Commit a2129f3

Browse files
committed
style: clippy
1 parent 889ab06 commit a2129f3

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

ssg-parent/src/dev.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ where
5454
reactive::driver::child_process_killer::ChildProcessKillerDriver::new();
5555
let (open_browser_driver, browser_opened) =
5656
reactive::driver::open_that::StaticOpenThatDriver::new(url.to_string());
57-
let (eprintln_driver, _) = reactive::driver::println::EprintlnDriver::new();
57+
let (eprintln_driver, ()) = reactive::driver::println::EprintlnDriver::new();
5858
let (notify_driver, notify) =
5959
match reactive::driver::notify::FsChangeDriver::new(BUILDER_CRATE_NAME) {
6060
Ok(val) => val,
@@ -90,11 +90,11 @@ where
9090

9191
futures::select! {
9292
error = error.fuse() => error,
93-
_ = builder_driver_task.fuse() => unreachable!(),
94-
_ = child_process_killer_driver_task.fuse() => unreachable!(),
95-
_ = stderr_driver_task.fuse() => unreachable!(),
96-
_ = open_browser_driver_task.fuse() => unreachable!(),
97-
_ = stream_splitter_task.fuse() => unreachable!(),
98-
_ = notify_driver_task.fuse() => unreachable!(),
93+
() = builder_driver_task.fuse() => unreachable!(),
94+
() = child_process_killer_driver_task.fuse() => unreachable!(),
95+
() = stderr_driver_task.fuse() => unreachable!(),
96+
() = open_browser_driver_task.fuse() => unreachable!(),
97+
() = stream_splitter_task.fuse() => unreachable!(),
98+
() = notify_driver_task.fuse() => unreachable!(),
9999
}
100100
}

ssg-parent/src/dev/app/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ impl super::App {
1414
#[allow(clippy::unnecessary_wraps)]
1515
fn builder_killed(&mut self, result: std::io::Result<()>) -> Option<super::OutputEvent> {
1616
match result {
17-
Ok(_) => match self.builder {
17+
Ok(()) => match self.builder {
1818
BuilderState::AwaitingKillResult => {
1919
self.builder = BuilderState::AwaitingChild;
2020
Some(super::OutputEvent::RunBuilder)
@@ -80,7 +80,7 @@ impl super::App {
8080

8181
fn browser_opened(result: Result<(), std::io::Error>) -> Option<super::OutputEvent> {
8282
match result {
83-
Ok(_) => None,
83+
Ok(()) => None,
8484
Err(error) => Some(super::OutputEvent::Error(super::super::DevError::Io(error))),
8585
}
8686
}

0 commit comments

Comments
 (0)