Skip to content

#[cfg_attr(rustfmt, rustfmt_skip)] does not silence errors about long lines #2124

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
mqudsi opened this issue Nov 6, 2017 · 1 comment
Closed

Comments

@mqudsi
Copy link

mqudsi commented Nov 6, 2017

With the following code fragment:

#[cfg_attr(rustfmt, rustfmt_skip)]
const APPID: &'static str = "ms-app://s-1-15-2-3622959219-60021355-3393940595-3805545848-3393419832-3988337178-3461320842";

rustfmt when run with the default parameters still generates the following error message:

mqudsi@ZBook /m/c/U/M/g/iMessageCore> rustfmt src/wns.rs
Using rustfmt config file /mnt/c/Users/Mahmoud/git/iMessageCore/rustfmt.toml for src/wns.rs
Rustfmt failed at src/wns.rs:11: line exceeded maximum length (maximum: 100, found: 123) (sorry)
@nrc nrc added the duplicate label Nov 6, 2017
@nrc
Copy link
Member

nrc commented Nov 6, 2017

Dup of #1298

@nrc nrc closed this as completed Nov 6, 2017
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