@@ -139,53 +139,6 @@ impl<'a, I: Iterator<Item = B> + Clone, B: Borrow<Item<'a>>> Display for Delayed
139139 }
140140}
141141
142- /// Tries to format given arguments with given formatting items.
143- /// Internally used by `DelayedFormat`.
144- #[ cfg( feature = "alloc" ) ]
145- #[ deprecated( since = "0.4.32" , note = "Use DelayedFormat::fmt instead" ) ]
146- pub fn format < ' a , I , B > (
147- w : & mut fmt:: Formatter ,
148- date : Option < & NaiveDate > ,
149- time : Option < & NaiveTime > ,
150- off : Option < & ( String , FixedOffset ) > ,
151- items : I ,
152- ) -> fmt:: Result
153- where
154- I : Iterator < Item = B > + Clone ,
155- B : Borrow < Item < ' a > > ,
156- {
157- DelayedFormat {
158- date : date. copied ( ) ,
159- time : time. copied ( ) ,
160- off : off. cloned ( ) ,
161- items,
162- #[ cfg( feature = "unstable-locales" ) ]
163- locale : None ,
164- }
165- . fmt ( w)
166- }
167-
168- /// Formats single formatting item
169- #[ cfg( feature = "alloc" ) ]
170- #[ deprecated( since = "0.4.32" , note = "Use DelayedFormat::fmt instead" ) ]
171- pub fn format_item (
172- w : & mut fmt:: Formatter ,
173- date : Option < & NaiveDate > ,
174- time : Option < & NaiveTime > ,
175- off : Option < & ( String , FixedOffset ) > ,
176- item : & Item < ' _ > ,
177- ) -> fmt:: Result {
178- DelayedFormat {
179- date : date. copied ( ) ,
180- time : time. copied ( ) ,
181- off : off. cloned ( ) ,
182- items : [ item] . into_iter ( ) ,
183- #[ cfg( feature = "unstable-locales" ) ]
184- locale : None ,
185- }
186- . fmt ( w)
187- }
188-
189142#[ cfg( feature = "alloc" ) ]
190143fn format_inner (
191144 w : & mut impl Write ,
0 commit comments