Skip to content

Commit

Permalink
fixup minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
nrc committed Nov 19, 2018
1 parent 3d01fc1 commit b9f4624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ pub trait CliOptions {
}

/// The edition of the compiler (RFC 2052)
configuration_option_enum!{ Edition:
configuration_option_enum! { Edition:
Edition2015: 2015,
Edition2018: 2018,
}
Expand Down
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ pub fn rewrite_macro_inner(
// anything in between the braces (for now).
let snippet = context.snippet(mac.span);
let macro_raw = snippet.split_at(snippet.find('!')? + 1).1.trim_start();
match trim_left_preserve_layout(macro_raw, &shape.indent, &context.config) {
match trim_left_preserve_layout(macro_raw, shape.indent, &context.config) {
Some(macro_body) => Some(format!("{} {}", macro_name, macro_body)),
None => Some(format!("{} {}", macro_name, macro_raw)),
}
Expand Down

0 comments on commit b9f4624

Please sign in to comment.