Trim the indentation on macros which heuristically appear to use block-style indentation (#3178)

This commit is contained in:
Kevin Stenerson 2018-11-07 01:49:53 -07:00 committed by Seiichi Uchida
parent 16d5f507b6
commit cd8bb50aea
6 changed files with 62 additions and 12 deletions

View file

@ -184,6 +184,19 @@ fn issue1577() {
});
}
// #3174
fn issue_3174() {
let data =
if let Some(debug) = error.debug_info() {
json!({
"errorKind": format!("{:?}", error.err_kind()),
"debugMessage": debug.message,
})
} else {
json!({"errorKind": format!("{:?}", error.err_kind())})
};
}
gfx_pipeline!(pipe {
vbuf: gfx::VertexBuffer<Vertex> = (),
out: gfx::RenderTarget<ColorFormat> = "Target0",