Skip to content

Commit 6dd8518

Browse files
mischnicloewenheim
andauthored
fix: Fix 1.89.0 clippy lints (getsentry#132) (#8)
cherry-pick getsentry#132 --------- Co-authored-by: Sebastian Zivota <loewenheim@users.noreply.github.com>
1 parent 68cd09a commit 6dd8518

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/lazy/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ pub struct SourceMapIndex<'a> {
313313
sections: Vec<SourceMapSection<'a>>,
314314
}
315315

316-
pub fn decode(slice: &[u8]) -> Result<DecodedMap> {
316+
pub fn decode(slice: &[u8]) -> Result<DecodedMap<'_>> {
317317
let content = strip_junk_header(slice)?;
318318
let rsm: RawSourceMap = serde_json::from_slice(content)?;
319319

src/ram_bundle.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl<'a> RamBundle<'a> {
162162
}
163163

164164
/// Looks up a module by ID in the bundle
165-
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule>> {
165+
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule<'_>>> {
166166
match self.repr {
167167
RamBundleImpl::Indexed(ref indexed) => indexed.get_module(id),
168168
RamBundleImpl::Unbundle(ref file) => file.get_module(id),
@@ -185,7 +185,7 @@ impl<'a> RamBundle<'a> {
185185
}
186186
}
187187
/// Returns an iterator over all modules in the bundle
188-
pub fn iter_modules(&self) -> RamBundleModuleIter {
188+
pub fn iter_modules(&self) -> RamBundleModuleIter<'_> {
189189
RamBundleModuleIter {
190190
range: 0..self.module_count(),
191191
ram_bundle: self,
@@ -268,7 +268,7 @@ impl UnbundleRamBundle {
268268
}
269269

270270
/// Looks up a module by ID in the bundle
271-
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule>> {
271+
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule<'_>>> {
272272
match self.modules.get(&id) {
273273
Some(data) => Ok(Some(RamBundleModule { id, data })),
274274
None => Ok(None),
@@ -321,7 +321,7 @@ impl<'a> IndexedRamBundle<'a> {
321321
}
322322

323323
/// Looks up a module by ID in the bundle
324-
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule>> {
324+
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule<'_>>> {
325325
if id >= self.module_count {
326326
return Err(Error::InvalidRamBundleIndex);
327327
}

src/sourceview.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ impl SourceView {
258258
}
259259

260260
/// Returns an iterator over all lines.
261-
pub fn lines(&self) -> Lines {
261+
pub fn lines(&self) -> Lines<'_> {
262262
Lines { sv: self, idx: 0 }
263263
}
264264

0 commit comments

Comments
 (0)