Skip to content

Multiline attributes on enum variant fields are handled poorly #1261

@Ms2ger

Description

@Ms2ger
 pub enum CoreResourceMsg {
     /// Store a cookie for a given originating URL
-    SetCookieForUrl(
-        ServoUrl,
-        #[serde(deserialize_with = "::hyper_serde::deserialize",
+    SetCookieForUrl(ServoUrl,
+                    #[serde(deserialize_with = "::hyper_serde::deserialize",
                 serialize_with = "::hyper_serde::serialize")]
-        Cookie,
-        CookieSource
-    ),
+                    Cookie,
+                    CookieSource),
 }

I would prefer for deserialize_with and serialize_with to remain aligned.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions