Skip to content

Commit 4d782f8

Browse files
committed
refactor(edit): Rely on type alias in ser
1 parent 4aa04ef commit 4d782f8

File tree

1 file changed

+2
-2
lines changed
  • crates/toml_edit/src/ser

1 file changed

+2
-2
lines changed

crates/toml_edit/src/ser/map.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ pub struct SerializeVariant<T> {
578578
inner: T,
579579
}
580580

581-
impl SerializeVariant<SerializeValueArray> {
581+
impl SerializeTupleVariant {
582582
pub(crate) fn tuple(variant: &'static str, len: usize) -> Self {
583583
Self {
584584
variant,
@@ -587,7 +587,7 @@ impl SerializeVariant<SerializeValueArray> {
587587
}
588588
}
589589

590-
impl SerializeVariant<SerializeMap> {
590+
impl SerializeStructVariant {
591591
pub(crate) fn struct_(variant: &'static str, len: usize) -> Self {
592592
Self {
593593
variant,

0 commit comments

Comments
 (0)