chore: fix Rust 1.91.0 lint for derivable Default

This commit is contained in:
link2xt
2025-10-31 05:50:00 +00:00
committed by l
parent 08f8f488b1
commit 59959259bf
4 changed files with 8 additions and 27 deletions

View File

@@ -308,7 +308,7 @@ pub struct InnerContext {
}
/// The state of ongoing process.
#[derive(Debug)]
#[derive(Debug, Default)]
enum RunningState {
/// Ongoing process is allocated.
Running { cancel_sender: Sender<()> },
@@ -317,15 +317,10 @@ enum RunningState {
ShallStop { request: tools::Time },
/// There is no ongoing process, a new one can be allocated.
#[default]
Stopped,
}
impl Default for RunningState {
fn default() -> Self {
Self::Stopped
}
}
/// Return some info about deltachat-core
///
/// This contains information mostly about the library itself, the