Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/ram_bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl<'a> RamBundle<'a> {
}

/// Looks up a module by ID in the bundle
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule>> {
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule<'_>>> {
match self.repr {
RamBundleImpl::Indexed(ref indexed) => indexed.get_module(id),
RamBundleImpl::Unbundle(ref file) => file.get_module(id),
Expand All @@ -185,7 +185,7 @@ impl<'a> RamBundle<'a> {
}
}
/// Returns an iterator over all modules in the bundle
pub fn iter_modules(&self) -> RamBundleModuleIter {
pub fn iter_modules(&self) -> RamBundleModuleIter<'_> {
RamBundleModuleIter {
range: 0..self.module_count(),
ram_bundle: self,
Expand Down Expand Up @@ -268,7 +268,7 @@ impl UnbundleRamBundle {
}

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

/// Looks up a module by ID in the bundle
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule>> {
pub fn get_module(&self, id: usize) -> Result<Option<RamBundleModule<'_>>> {
if id >= self.module_count {
return Err(Error::InvalidRamBundleIndex);
}
Expand Down
2 changes: 1 addition & 1 deletion src/sourceview.rs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ impl SourceView {
}

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

Expand Down
Loading