-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tz/posix: remove last bits of reliance on
alloc
We no longer keep around the "original" string we parsed for POSIX time zones. Instead, we implement `Display` for our POSIX TZ types, and that's how we'll show it in places that need it. This does mean that we show the parsed form instead of what the user actually provided, but I think this should be fine in the vast majority of cases. Notice again how much more annoying this is. A couple of small allocs where it didn't really matter for perf saved us a lot of work. This module does still allocate a `Box<str>` in one place, but it's in code that's only used when `std` is enabled (code for reading the `TZ` environment variable), so we're fine with that for now.
- Loading branch information
1 parent
a8795c3
commit 30dcb95
Showing
7 changed files
with
271 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.