Skip to content

Line exceeded maximum length warning caused by CRLF #1335

Closed
@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

    bugPanic, non-idempotency, invalid code, etc.good 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