Skip to content

Commit

Permalink
chore(openapi): bump derive_more (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored Sep 8, 2024
1 parent 0c6ccf4 commit dc837e7
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion poem-openapi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ quick-xml.workspace = true
serde_urlencoded.workspace = true
base64.workspace = true
serde.workspace = true
derive_more = "0.99.16"
derive_more = { version = "1.0", features = ["display"] }
num-traits = "0.2.14"
regex.workspace = true
mime.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/max_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "maxItems({len})")]
#[display("maxItems({len})")]
pub struct MaxItems {
len: usize,
}
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/max_length.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "maxLength({len})")]
#[display("maxLength({len})")]
pub struct MaxLength {
len: usize,
}
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/max_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "maxProperties({len})")]
#[display("maxProperties({len})")]
pub struct MaxProperties {
len: usize,
}
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/maximum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "maximum({n}, exclusive: {exclusive})")]
#[display("maximum({n}, exclusive: {exclusive})")]
pub struct Maximum {
n: f64,
exclusive: bool,
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/min_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "minItems({len})")]
#[display("minItems({len})")]
pub struct MinItems {
len: usize,
}
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/min_length.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "minLength({len})")]
#[display("minLength({len})")]
pub struct MinLength {
len: usize,
}
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/min_properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "minProperties({len})")]
#[display("minProperties({len})")]
pub struct MinProperties {
len: usize,
}
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/minimum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "minimum({n}, exclusive: {exclusive})")]
#[display("minimum({n}, exclusive: {exclusive})")]
pub struct Minimum {
n: f64,
exclusive: bool,
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/multiple_of.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "multipleOf({n})")]
#[display("multipleOf({n})")]
pub struct MultipleOf {
n: f64,
}
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use crate::{
};

#[derive(Display)]
#[display(fmt = "pattern(\"{pattern}\")")]
#[display("pattern(\"{pattern}\")")]
pub struct Pattern {
pattern: &'static str,
}
Expand Down
2 changes: 1 addition & 1 deletion poem-openapi/src/validation/unique_items.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
};

#[derive(Display, Default)]
#[display(fmt = "uniqueItems()")]
#[display("uniqueItems()")]
pub struct UniqueItems;

impl UniqueItems {
Expand Down

0 comments on commit dc837e7

Please sign in to comment.