File tree 2 files changed +3
-13
lines changed
2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ pub fn write(w: &mut Write) -> io::Result<()> {
118
118
// local, it still displays much nicer backtraces when a
119
119
// couple of tasks panic simultaneously
120
120
static LOCK : StaticMutex = MUTEX_INIT ;
121
- let _g = unsafe { LOCK . lock ( ) } ;
121
+ let _g = LOCK . lock ( ) ;
122
122
123
123
try!( writeln ! ( w, "stack backtrace:" ) ) ;
124
124
// 100 lines should be enough
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ pub struct TTY {
23
23
}
24
24
25
25
#[ cfg( any( target_os = "macos" ,
26
+ target_os = "ios" ,
27
+ target_os = "dragonfly" ,
26
28
target_os = "freebsd" ,
27
29
target_os = "bitrig" ,
28
30
target_os = "openbsd" ) ) ]
@@ -54,12 +56,6 @@ impl TTY {
54
56
Err ( sys_common:: unimpl ( ) )
55
57
}
56
58
57
- #[ cfg( any( target_os = "linux" ,
58
- target_os = "android" ,
59
- target_os = "macos" ,
60
- target_os = "freebsd" ,
61
- target_os = "bitrig" ,
62
- target_os = "openbsd" ) ) ]
63
59
pub fn get_winsize ( & mut self ) -> IoResult < ( int , int ) > {
64
60
unsafe {
65
61
#[ repr( C ) ]
@@ -82,10 +78,4 @@ impl TTY {
82
78
}
83
79
}
84
80
}
85
-
86
- #[ cfg( any( target_os = "ios" ,
87
- target_os = "dragonfly" ) ) ]
88
- pub fn get_winsize ( & mut self ) -> IoResult < ( int , int ) > {
89
- Err ( sys_common:: unimpl ( ) )
90
- }
91
81
}
You can’t perform that action at this time.
0 commit comments