clippy_nyx (#2401)

This commit is contained in:
Dominik Maier 2024-07-15 23:49:56 +02:00 committed by GitHub
parent 8919024e83
commit 9d5be4ede1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -827,7 +827,7 @@ where
if state.stop_requested() { if state.stop_requested() {
state.discard_stop_request(); state.discard_stop_request();
manager.on_shutdown()?; manager.on_shutdown()?;
return Err(Error::shutting_down()) return Err(Error::shutting_down());
} }
Ok(id) Ok(id)

View File

@ -32,6 +32,7 @@ pub struct NyxExecutor<S, OT> {
impl NyxExecutor<(), ()> { impl NyxExecutor<(), ()> {
/// Create a builder for [`NyxExeuctor`] /// Create a builder for [`NyxExeuctor`]
#[must_use]
pub fn builder() -> NyxExecutorBuilder { pub fn builder() -> NyxExecutorBuilder {
NyxExecutorBuilder::new() NyxExecutorBuilder::new()
} }
@ -157,6 +158,7 @@ impl Default for NyxExecutorBuilder {
} }
impl NyxExecutorBuilder { impl NyxExecutorBuilder {
#[must_use]
pub fn new() -> Self { pub fn new() -> Self {
Self { Self {
stdout: None, stdout: None,