Skip to content

assert_eq! line too long on master #1868

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

Closed
radix opened this issue Aug 9, 2017 · 2 comments
Closed

assert_eq! line too long on master #1868

radix opened this issue Aug 9, 2017 · 2 comments

Comments

@radix
Copy link
Contributor

radix commented Aug 9, 2017

rustfmt version: master @ 7da7764

I only have one line-too-long "sorry" bug in my codebase now, and it's on an assert_eq! line. rustfmt seems to be able to format these normally.

config:

chain_one_line_max = 100
fn_args_density = "Compressed"
fn_call_width = 100
max_width = 100
single_line_if_else_max_width = 100
struct_lit_width = 100
struct_variant_width = 100
tab_spaces = 2

line:

mod test {
  #[test]
  fn folderpath_from_str() {
    assert_eq!(FolderPath::from_str("/foo").unwrap(), FolderPath::from_vec(vec!["foo".to_string()]));
  }
}

and the warning:

Rustfmt failed at foo.rs:652: line exceeded maximum length (maximum: 100, found: 101) (sorry)
@radix
Copy link
Contributor Author

radix commented Aug 9, 2017

I'm sorry, I guess this is a dupe of #611

@radix radix closed this as completed Aug 9, 2017
@topecongiro
Copy link
Contributor

This may be hitting #1742.

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