Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

== with long args is sub-optimal #2967

Closed
nrc opened this issue Aug 26, 2018 · 1 comment
Closed

== with long args is sub-optimal #2967

nrc opened this issue Aug 26, 2018 · 1 comment

Comments

@nrc
Copy link
Member

nrc commented Aug 26, 2018

e.g.,

    self.as_node().owner_doc().0 as *const structs::nsIDocument ==
        device
            .pres_context()
            .mDocument
            .raw::<structs::nsIDocument>()

Which Rustfmt formats as

    self.as_node().owner_doc().0 as *const structs::nsIDocument == device
        .pres_context()
        .mDocument
        .raw::<structs::nsIDocument>()

which hides the == a bit

@topecongiro
Copy link
Contributor

Closing as this fixed on the current master:

    self.as_node().owner_doc().0 as *const structs::nsIDocument
        == device
            .pres_context()
            .mDocument
            .raw::<structs::nsIDocument>()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants