Skip to content

Commit e3a5f16

Browse files
committed
Fix function naming scheme
1 parent 20a8cf6 commit e3a5f16

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

serde_with/src/schemars_0_8.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ where
11571157
}
11581158

11591159
impl TimespanTargetType {
1160-
pub(crate) fn to_flexible_schema(self, signed: bool) -> Schema {
1160+
pub(crate) fn into_flexible_schema(self, signed: bool) -> Schema {
11611161
use ::schemars_0_8::schema::StringValidation;
11621162

11631163
let mut number = SchemaObject {
@@ -1232,7 +1232,7 @@ where
12321232

12331233
fn json_schema(_: &mut SchemaGenerator) -> Schema {
12341234
<T as TimespanSchemaTarget<F>>::TYPE
1235-
.to_flexible_schema(<T as TimespanSchemaTarget<F>>::SIGNED)
1235+
.into_flexible_schema(<T as TimespanSchemaTarget<F>>::SIGNED)
12361236
}
12371237

12381238
fn is_referenceable() -> bool {

serde_with/src/schemars_0_9.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ where
11621162
}
11631163

11641164
impl TimespanTargetType {
1165-
pub(crate) fn to_flexible_schema(self, signed: bool) -> Schema {
1165+
pub(crate) fn into_flexible_schema(self, signed: bool) -> Schema {
11661166
let mut number = json_schema!({
11671167
"type": "number"
11681168
});
@@ -1229,7 +1229,7 @@ where
12291229

12301230
fn json_schema(_: &mut SchemaGenerator) -> Schema {
12311231
<T as TimespanSchemaTarget<F>>::TYPE
1232-
.to_flexible_schema(<T as TimespanSchemaTarget<F>>::SIGNED)
1232+
.into_flexible_schema(<T as TimespanSchemaTarget<F>>::SIGNED)
12331233
}
12341234

12351235
fn inline_schema() -> bool {

serde_with/src/schemars_1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ where
11691169
}
11701170

11711171
impl TimespanTargetType {
1172-
pub(crate) fn to_flexible_schema(self, signed: bool) -> Schema {
1172+
pub(crate) fn into_flexible_schema(self, signed: bool) -> Schema {
11731173
let mut number = json_schema!({
11741174
"type": "number"
11751175
});
@@ -1236,7 +1236,7 @@ where
12361236

12371237
fn json_schema(_: &mut SchemaGenerator) -> Schema {
12381238
<T as TimespanSchemaTarget<F>>::TYPE
1239-
.to_flexible_schema(<T as TimespanSchemaTarget<F>>::SIGNED)
1239+
.into_flexible_schema(<T as TimespanSchemaTarget<F>>::SIGNED)
12401240
}
12411241

12421242
fn inline_schema() -> bool {

0 commit comments

Comments
 (0)