Skip to content

Commit 5874b09

Browse files
committed
fix formatting
1 parent d6da5fb commit 5874b09

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

compiler/rustc_macros/src/session_diagnostic.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,7 @@ fn span_err(span: impl proc_macro::MultiSpan, msg: &str) -> proc_macro::Diagnost
119119
/// Emit a diagnostic on span `$span` with msg `$msg` (optionally performing additional decoration
120120
/// using the `FnOnce` passed in `diag`) and return `Err(ErrorHandled)`.
121121
macro_rules! throw_span_err {
122-
($span:expr, $msg:expr) => {{
123-
throw_span_err!($span, $msg, |diag| diag)
124-
}};
122+
($span:expr, $msg:expr) => {{ throw_span_err!($span, $msg, |diag| diag) }};
125123
($span:expr, $msg:expr, $f:expr) => {{
126124
return Err(_throw_span_err($span, $msg, $f));
127125
}};

compiler/rustc_session/src/session.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -783,11 +783,7 @@ impl Session {
783783
Path::new(&rustlib_path),
784784
Path::new("bin"),
785785
]);
786-
if self_contained {
787-
vec![p.clone(), p.join("self-contained")]
788-
} else {
789-
vec![p]
790-
}
786+
if self_contained { vec![p.clone(), p.join("self-contained")] } else { vec![p] }
791787
}
792788

793789
pub fn init_incr_comp_session(

0 commit comments

Comments
 (0)