mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
Style fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// Requires full MIR on Windows.
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
use std::sync::{Mutex, RwLock, TryLockError};
|
||||
|
||||
Reference in New Issue
Block a user