Style fixes

This commit is contained in:
David Cook
2020-02-21 19:05:24 -06:00
parent dca83d73cb
commit c773ca8614
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
// This test case exercises std::sys_common::remutex::ReentrantMutex
// by calling println!() from inside fmt
struct InterruptingCow();
struct InterruptingCow;
impl Display for InterruptingCow {
fn fmt(&self, _f: &mut Formatter<'_>) -> Result<(), Error> {
@@ -13,5 +13,5 @@ fn fmt(&self, _f: &mut Formatter<'_>) -> Result<(), Error> {
}
fn main() {
println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow());
println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow);
}
-2
View File
@@ -1,5 +1,3 @@
// Requires full MIR on Windows.
#![feature(rustc_private)]
use std::sync::{Mutex, RwLock, TryLockError};