Skip to content

Commit 986b691

Browse files
authored
fix: Fix 1.89.0 clippy lints (#132)
1 parent 1785aa6 commit 986b691

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ram_bundle.rs

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

163163
/// Looks up a module by ID in the bundle
164-
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule>> {
164+
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule<'_>>> {
165165
match self.repr {
166166
RamBundleImpl::Indexed(ref indexed) => indexed.get_module(id),
167167
RamBundleImpl::Unbundle(ref file) => file.get_module(id),
@@ -184,7 +184,7 @@ impl<'a> RamBundle<'a> {
184184
}
185185
}
186186
/// Returns an iterator over all modules in the bundle
187-
pub fn iter_modules(&self) -> RamBundleModuleIter {
187+
pub fn iter_modules(&self) -> RamBundleModuleIter<'_> {
188188
RamBundleModuleIter {
189189
range: 0..self.module_count(),
190190
ram_bundle: self,
@@ -267,7 +267,7 @@ impl UnbundleRamBundle {
267267
}
268268

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

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

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)