Skip to content

Commit 61d6544

Browse files
committed
chore: Appease rustc linter warnings v1.89
As described in the Rust-1.89 blog, [mismatched_lifetime_syntaxes](https://blog.rust-lang.org/2025/08/07/Rust-1.89.0/) is now a stable lint that is cropping up in this crate. Signed-off-by: Brandon Pike <[email protected]>
1 parent 0c52c5f commit 61d6544

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/collector.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

src/frames.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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())

src/profiler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ impl ProfilerGuard<'_> {
197197
}
198198

199199
/// Generate a report
200-
pub fn report(&self) -> ReportBuilder {
200+
pub fn report(&self) -> ReportBuilder<'_> {
201201
ReportBuilder::new(
202202
self.profiler,
203203
self.timer.as_ref().map(Timer::timing).unwrap_or_default(),

0 commit comments

Comments
 (0)