Skip to content

Commit be7d3e1

Browse files
committed
[Rust] Use upper came case for enum options
Fixes this warning: warning: variant `shipped` should have an upper camel case name --> reqwest/petstore/src/models/order.rs:53:5 | 53 | shipped, | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Shipped` | = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default
1 parent ea13fed commit be7d3e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • samples/client/petstore/rust/reqwest/petstore/src/models

samples/client/petstore/rust/reqwest/petstore/src/models/order.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub enum Status {
5050
#[serde(rename = "approved")]
5151
Approved,
5252
#[serde(rename = "delivered")]
53-
shipped,
53+
Shipped,
5454
}
5555

5656
impl Default for Status {

0 commit comments

Comments
 (0)