Remove newtype wrapper `RelativeTime` for `jiff::Timestamp`
Dependencies
- [2]
3NMKD6I5Refactor `Localize` trait to use `std::io::Write` - [3]
7U2DXFMPRefactor `fluent_embed::Localize` to support overriding locales - [4]
IRW6JACSImplement `Localize` for `RelativeTime` - [5]
BFL2Y7GNAdd relative timestamps using `jiff` and `icu_relativetime` - [*]
HHJDRLLNCreate `fluent_embed_runtime` crate
Change contents
- edit in fluent_embed/src/time.rs at line 16
/// A time relative to the system clock (either past or future)pub struct RelativeTime(Timestamp); - replacement in fluent_embed/src/time.rs at line 17[3.749]→[3.749:769](∅→∅),[3.2812]→[3.769:846](∅→∅),[3.769]→[3.769:846](∅→∅),[3.846]→[3.23:25](∅→∅),[3.25]→[3.954:955](∅→∅),[3.954]→[3.954:955](∅→∅),[3.955]→[2.3794:3849](∅→∅)
impl RelativeTime {pub fn new(timestamp: Timestamp) -> Self {Self(timestamp)}}impl<W: std::io::Write> Localize<W> for RelativeTime {impl<W: std::io::Write> Localize<W> for Timestamp { - replacement in fluent_embed/src/time.rs at line 36
.since(self.0).since(*self) - replacement in fluent_embed/src/time.rs at line 70
.since(self.0).since(*self) - edit in fluent_embed/src/lib.rs at line 10[7.382][7.382]
pub use jiff::Timestamp;