forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rust: remove Default implementation for enums
PR OpenAPITools#15856 removed the derived Default implementations for structs, but left those for enums. Since enums do not have a sensible default (see OpenAPITools#10845), these should not be derived either. This is technically a breaking change, but it's also a bug fix since Default was intended to be removed in 7.0.0.
- Loading branch information
Showing
26 changed files
with
0 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,6 @@ impl ToString for Baz { | |
} | ||
} | ||
|
||
impl Default for Baz { | ||
fn default() -> Baz { | ||
Self::A | ||
} | ||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,3 @@ pub enum RequiredEnums { | |
C, | ||
} | ||
|
||
impl Default for RequiredEnums { | ||
fn default() -> RequiredEnums { | ||
Self::A | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Delivered, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Placed | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Sold, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Available | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,6 @@ impl ToString for Baz { | |
} | ||
} | ||
|
||
impl Default for Baz { | ||
fn default() -> Baz { | ||
Self::A | ||
} | ||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,3 @@ pub enum RequiredEnums { | |
C, | ||
} | ||
|
||
impl Default for RequiredEnums { | ||
fn default() -> RequiredEnums { | ||
Self::A | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Delivered, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Placed | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Sold, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Available | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,6 @@ impl ToString for Baz { | |
} | ||
} | ||
|
||
impl Default for Baz { | ||
fn default() -> Baz { | ||
Self::A | ||
} | ||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,3 @@ pub enum RequiredEnums { | |
C, | ||
} | ||
|
||
impl Default for RequiredEnums { | ||
fn default() -> RequiredEnums { | ||
Self::A | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Delivered, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Placed | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Sold, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Available | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,6 @@ impl ToString for Baz { | |
} | ||
} | ||
|
||
impl Default for Baz { | ||
fn default() -> Baz { | ||
Self::A | ||
} | ||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,3 @@ pub enum RequiredEnums { | |
C, | ||
} | ||
|
||
impl Default for RequiredEnums { | ||
fn default() -> RequiredEnums { | ||
Self::A | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Delivered, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Placed | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Sold, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Available | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,6 @@ impl ToString for Baz { | |
} | ||
} | ||
|
||
impl Default for Baz { | ||
fn default() -> Baz { | ||
Self::A | ||
} | ||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,3 @@ pub enum RequiredEnums { | |
C, | ||
} | ||
|
||
impl Default for RequiredEnums { | ||
fn default() -> RequiredEnums { | ||
Self::A | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Delivered, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Placed | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,9 +54,3 @@ pub enum Status { | |
Sold, | ||
} | ||
|
||
impl Default for Status { | ||
fn default() -> Status { | ||
Self::Available | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters