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

nightly won't unwrap trailing line comments #6199

Closed
fowles opened this issue Jun 16, 2024 · 1 comment
Closed

nightly won't unwrap trailing line comments #6199

fowles opened this issue Jun 16, 2024 · 1 comment

Comments

@fowles
Copy link

fowles commented Jun 16, 2024

fn main() -> Result<(), Box<dyn std::error::Error>> {
    if false {
        return Ok(()); // 8901234567890123456789012345678901234567890
                       // 12345
    }
    if true {
        if true {
            if true {
                if true {
                    if true {
                        return Ok(()); // The workspace has been deleted
                                       // (see above)
                    }
                }
            }
        }
    }
    Ok(())
}

when formatted with

edition = "2021"
max_width = 100
wrap_comments = true
comment_width = 100

this should unwrap both line comments as they will both fit within 100 characters.

@ytmimi
Copy link
Contributor

ytmimi commented Jun 18, 2024

@fowles to the best of my knowledge wrap_commetns won't unwrap / reflow text, and I believe this is the intended behavior. This seems like it's a duplicate of #2968.

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants