Skip to content

Commit 75d1117

Browse files
make 1.91 clippy happy
1 parent ca5ab85 commit 75d1117

File tree

1 file changed

+2
-7
lines changed
  • ogcapi-types/src/processes

1 file changed

+2
-7
lines changed

ogcapi-types/src/processes/job.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,17 @@ pub enum JobType {
5757
Process,
5858
}
5959

60-
#[derive(Serialize, Deserialize, ToSchema, Debug, Clone, PartialEq, Eq)]
60+
#[derive(Serialize, Deserialize, ToSchema, Debug, Clone, PartialEq, Eq, Default)]
6161
#[serde(rename_all = "lowercase")]
6262
pub enum StatusCode {
63+
#[default]
6364
Accepted,
6465
Running,
6566
Successful,
6667
Failed,
6768
Dismissed,
6869
}
6970

70-
impl Default for StatusCode {
71-
fn default() -> Self {
72-
Self::Accepted
73-
}
74-
}
75-
7671
#[serde_with::serde_as]
7772
#[derive(Deserialize, Debug)]
7873
pub struct ResultsQuery {

0 commit comments

Comments
 (0)