mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 01:16:29 +03:00
chore: fix Rust 1.91.0 lint for derivable Default
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user