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

View file

@ -3,7 +3,7 @@ use std::fmt::{Display, Error, Formatter};
// 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 @@ impl Display for InterruptingCow {
}
fn main() {
println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow());
println!("\"Knock knock\" \"Who's {} there?\"", InterruptingCow);
}

View file

@ -1,5 +1,3 @@
// Requires full MIR on Windows.
#![feature(rustc_private)]
use std::sync::{Mutex, RwLock, TryLockError};