File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pub type Config {
1818 Config (
1919 style_mode : StyleMode ,
2020 bit_array_mode : BitArrayMode ,
21- labels_mode : LabelsMode ,
21+ label_mode : LabelMode ,
2222 )
2323}
2424
@@ -47,7 +47,7 @@ pub type BitArrayMode {
4747/// This option only affects the JavaScript target since Erlang has a different
4848/// runtime representation of custom types that omits labels.
4949///
50- pub type LabelsMode {
50+ pub type LabelMode {
5151 /// Show field labels in custom types.
5252 /// ```
5353 /// Foo(42, bar: "bar", baz: "baz")
@@ -242,7 +242,7 @@ fn pretty_custom_type(
242242
243243 let fields =
244244 list . map ( fields , fn ( field ) {
245- case field , config . labels_mode {
245+ case field , config . label_mode {
246246 decoder . Positional ( value ) , Labels
247247 | decoder . Positional ( value ) , NoLabels
248248 | decoder . Labelled ( _ , value ) , NoLabels -> pretty_dynamic ( value , config )
You can’t perform that action at this time.
0 commit comments