Skip to content

Commit

Permalink
Drop must_use annotations to satisfy MSRV check
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceg committed Aug 9, 2023
1 parent a4c9fe2 commit 807698c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ impl ApplicationConfig {
}

impl Application {
#[must_use]
pub fn run() -> ExitStatus {
let (runtime, app) = Self::prepare_start().unwrap_or_else(|code| std::process::exit(code));

Expand Down Expand Up @@ -255,12 +254,10 @@ pub struct StartedApplication {
}

impl StartedApplication {
#[must_use]
pub async fn run(self) -> ExitStatus {
self.main().await.shutdown().await
}

#[must_use]
pub async fn main(self) -> FinishedApplication {
let Self {
config_paths,
Expand Down Expand Up @@ -356,7 +353,6 @@ pub struct FinishedApplication {
}

impl FinishedApplication {
#[must_use]
pub async fn shutdown(self) -> ExitStatus {
let FinishedApplication {
signal,
Expand All @@ -378,7 +374,6 @@ impl FinishedApplication {
}
}

#[must_use]
async fn stop(topology_controller: TopologyController, mut signal_rx: SignalRx) -> ExitStatus {
emit!(VectorStopped);
tokio::select! {
Expand All @@ -394,7 +389,6 @@ impl FinishedApplication {
}
}

#[must_use]
fn quit() -> ExitStatus {
// It is highly unlikely that this event will exit from topology.
emit!(VectorQuit);
Expand Down

0 comments on commit 807698c

Please sign in to comment.