Style fixes
This commit is contained in:
parent
dca83d73cb
commit
c773ca8614
2 changed files with 2 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
// Requires full MIR on Windows.
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
use std::sync::{Mutex, RwLock, TryLockError};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue