File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ impl Iterator for Env {
109
109
if * self . cur == 0 { return None }
110
110
let p = & * self . cur ;
111
111
let mut len = 0 ;
112
- while * ( p as * const _ ) . offset ( len) != 0 {
112
+ while * ( p as * const u16 ) . offset ( len) != 0 {
113
113
len += 1 ;
114
114
}
115
115
let p = p as * const u16 ;
Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ macro_rules! __thread_local_inner {
203
203
}
204
204
} ;
205
205
206
+ #[ allow( trivial_casts) ]
206
207
#[ cfg( any( not( any( target_os = "macos" , target_os = "linux" ) ) , target_arch = "aarch64" ) ) ]
207
208
const _INIT: :: std:: thread_local:: __impl:: KeyInner <$t> = {
208
209
unsafe extern fn __destroy( ptr: * mut u8 ) {
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ impl<T: Write+Send+'static> WinConsole<T> {
126
126
}
127
127
Some ( box WinConsole { buf : out,
128
128
def_foreground : fg, def_background : bg,
129
- foreground : fg, background : bg } as Box < Terminal < T > + Send > )
129
+ foreground : fg, background : bg } )
130
130
}
131
131
}
132
132
You can’t perform that action at this time.
0 commit comments