Skip to content

Commit 7503fcc

Browse files
committed
chore: Make new hoisting functions pub(crate)
1 parent 730e0db commit 7503fcc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

kube-core/src/schema/transforms.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ fn tagged_enum_with_unit_variants() {
6868
/// - Each subschemas types is the same as the others
6969
///
7070
/// NOTE: This should work regardless of whether other hoisting has been performed or not.
71-
fn hoist_one_of_enum_with_unit_variants(kube_schema: &mut SchemaObject) {
71+
pub(crate) fn hoist_one_of_enum_with_unit_variants(kube_schema: &mut SchemaObject) {
7272
// Run some initial checks in case there is nothing to do
7373
let SchemaObject {
7474
subschemas: Some(subschemas),

kube-core/src/schema/transformsb.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ fn optional_tagged_enum_with_unit_variants() {
9393
/// - One subschema represents the `null` (has an enum with a null entry, and nullable set to true)
9494
///
9595
/// NOTE: This should work regardless of whether other hoisting has been performed or not.
96-
fn hoist_any_of_subschema_with_a_nullable_variant(kube_schema: &mut SchemaObject) {
96+
pub(crate) fn hoist_any_of_subschema_with_a_nullable_variant(kube_schema: &mut SchemaObject) {
9797
// Run some initial checks in case there is nothing to do
9898
let SchemaObject {
9999
subschemas: Some(subschemas),

kube-core/src/schema/transformsc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ fn invalid_untagged_enum_with_conflicting_variant_fields_after_one_of_hosting()
352352
/// - Each subschema has the type "object"
353353
///
354354
/// NOTE: This should work regardless of whether other hoisting has been performed or not.
355-
fn hoist_properties_for_any_of_subschemas(kube_schema: &mut SchemaObject) {
355+
pub(crate) fn hoist_properties_for_any_of_subschemas(kube_schema: &mut SchemaObject) {
356356
// Run some initial checks in case there is nothing to do
357357
let SchemaObject {
358358
subschemas: Some(subschemas),

0 commit comments

Comments
 (0)