Skip to content

Dedents inside lazy_static! #1921

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
andy-hanson opened this issue Aug 27, 2017 · 0 comments
Closed

Dedents inside lazy_static! #1921

andy-hanson opened this issue Aug 27, 2017 · 0 comments

Comments

@andy-hanson
Copy link

andy-hanson commented Aug 27, 2017

Input code:

lazy_static! {
	static ref ONE: u32 = 1;
	static ref TWO: u32 = 2;
	static ref THREE: u32 = 3;
	static ref FOUR: u32 = {
		let mut acc = 1;
		acc += 1;
		acc += 2;
		acc
	}
}

Output:

lazy_static! {
static ref ONE: u32 = 1;
static ref TWO: u32 = 2;
static ref THREE: u32 = 3;
static ref FOUR: u32 = {
let mut acc = 1;
acc += 1;
acc += 2;
acc
}
}
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

3 participants