-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate standalone format
functions
#1306
Deprecate standalone format
functions
#1306
Conversation
format
functions
da889fe
to
fe3cef2
Compare
Oops, 0.4.28 is no longer the next version to mentions in the deprecation 🤣. |
Codecov Report
@@ Coverage Diff @@
## 0.4.x #1306 +/- ##
==========================================
- Coverage 91.30% 91.00% -0.30%
==========================================
Files 38 38
Lines 17044 17068 +24
==========================================
- Hits 15562 15533 -29
- Misses 1482 1535 +53
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
fe3cef2
to
ffbed1b
Compare
src/format/formatting.rs
Outdated
@@ -161,6 +161,7 @@ impl<'a, I: Iterator<Item = B> + Clone, B: Borrow<Item<'a>>> Display for Delayed | |||
/// Internally used by `DelayedFormat`. | |||
#[cfg(any(feature = "alloc", feature = "std"))] | |||
#[cfg_attr(docsrs, doc(cfg(any(feature = "alloc", feature = "std"))))] | |||
#[deprecated(since = "0.4.32")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a note
about what to use instead?
ffbed1b
to
30f51db
Compare
30f51db
to
0aae70b
Compare
Split out from #1163.
In the
format
module we have 4 standaloneformat*
functions. I don't think they were ever intended to be public.They need an
&mut Formatter<'_>
as argument, which can't be constructed outside of aDisplay
implementation.To deprecated these methods I inlined them in
DelayedFormat::Display
, and made the methods wrappers around that.