File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 11// f9f855b960d01b292a3c2642e263e6156d52631e78e0177fe51416ed5bbecc81 proto/profile.proto
22
3+ // This file is @generated by prost-build.
34#[ allow( clippy:: derive_partial_eq_without_eq) ]
45#[ derive( Clone , PartialEq , :: prost:: Message ) ]
56pub struct Profile {
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ impl<T: Eq> Bucket<T> {
8080 }
8181 }
8282
83- pub fn iter ( & self ) -> BucketIterator < T > {
83+ pub fn iter ( & self ) -> BucketIterator < ' _ , T > {
8484 BucketIterator :: < T > {
8585 related_bucket : self ,
8686 index : 0 ,
Original file line number Diff line number Diff line change @@ -129,11 +129,11 @@ impl Symbol {
129129 demangle ( & String :: from_utf8_lossy ( self . raw_name ( ) ) ) . into_owned ( )
130130 }
131131
132- pub fn sys_name ( & self ) -> Cow < str > {
132+ pub fn sys_name ( & self ) -> Cow < ' _ , str > {
133133 String :: from_utf8_lossy ( self . raw_name ( ) )
134134 }
135135
136- pub fn filename ( & self ) -> Cow < str > {
136+ pub fn filename ( & self ) -> Cow < ' _ , str > {
137137 self . filename
138138 . as_ref ( )
139139 . map ( |name| name. as_os_str ( ) . to_string_lossy ( ) )
Original file line number Diff line number Diff line change @@ -198,15 +198,15 @@ impl ProfilerGuard<'_> {
198198 }
199199
200200 /// Generate a report
201- pub fn report ( & self ) -> ReportBuilder {
201+ pub fn report ( & self ) -> ReportBuilder < ' _ > {
202202 ReportBuilder :: new (
203203 self . profiler ,
204204 self . timer . as_ref ( ) . map ( Timer :: timing) . unwrap_or_default ( ) ,
205205 )
206206 }
207207}
208208
209- impl < ' a > Drop for ProfilerGuard < ' a > {
209+ impl Drop for ProfilerGuard < ' _ > {
210210 fn drop ( & mut self ) {
211211 drop ( self . timer . take ( ) ) ;
212212
You can’t perform that action at this time.
0 commit comments