Skip to content

Line exceeded maximum length warning caused by CRLF #1335

@iliekturtles

Description

@iliekturtles

The code block below gives the following warning when the file is saved with Window's native CRLF line ending: Rustfmt failed at S:\uom\src\system.rs:143: line exceeded maximum length (maximum: 100, found: 101) (sorry). Saving the file with a LF line ending silences the warning. rustfmt must be counting the CR (\r) as part of the line length.

                impl<$($name,)+ $($symbol,)+ V> $crate::stdlib::ops::$Trait<BaseUnits<$($name,)+ V>>

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICEgood first issueIssues up for grabs, also good candidates for new rustfmt contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions