Skip to content

Commit 33f6ce9

Browse files
committed
Improve timezone handling in 'localtime_r()' using 'allocate_bytes()'
Signed-off-by: shamb0 <[email protected]>
1 parent 2925226 commit 33f6ce9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/shims/time.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
use std::ffi::{OsStr, OsString};
22
use std::fmt::Write;
33
use std::str::FromStr;
4-
use std::sync::OnceLock;
54
use std::time::{Duration, SystemTime};
65

76
use chrono::{DateTime, Datelike, Offset, Timelike, Utc};
87
use chrono_tz::Tz;
9-
use rustc_middle::ty::Ty;
10-
use rustc_middle::ty::layout::LayoutOf;
8+
use rustc_abi::Align;
9+
use rustc_ast::ast::Mutability;
1110

1211
use crate::*;
1312

0 commit comments

Comments
 (0)