Skip to content

Commit

Permalink
Fix clippy::needless_lifetimes lints
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Dec 5, 2024
1 parent 9fadadb commit 569413d
Show file tree
Hide file tree
Showing 20 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions src/breakpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pub struct SBBreakpointLocationIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBBreakpointLocationIter<'d> {
impl Iterator for SBBreakpointLocationIter<'_> {
type Item = SBBreakpointLocation;

fn next(&mut self) -> Option<SBBreakpointLocation> {
Expand All @@ -244,7 +244,7 @@ impl<'d> Iterator for SBBreakpointLocationIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBBreakpointLocationIter<'d> {}
impl ExactSizeIterator for SBBreakpointLocationIter<'_> {}

#[cfg(feature = "graphql")]
#[juniper::graphql_object]
Expand Down
4 changes: 2 additions & 2 deletions src/breakpointlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct SBBreakpointListIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBBreakpointListIter<'d> {
impl Iterator for SBBreakpointListIter<'_> {
type Item = SBBreakpoint;

fn next(&mut self) -> Option<SBBreakpoint> {
Expand All @@ -118,4 +118,4 @@ impl<'d> Iterator for SBBreakpointListIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBBreakpointListIter<'d> {}
impl ExactSizeIterator for SBBreakpointListIter<'_> {}
4 changes: 2 additions & 2 deletions src/compileunit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub struct SBCompileUnitLineEntryIter<'d> {
idx: u32,
}

impl<'d> Iterator for SBCompileUnitLineEntryIter<'d> {
impl Iterator for SBCompileUnitLineEntryIter<'_> {
type Item = SBLineEntry;

fn next(&mut self) -> Option<SBLineEntry> {
Expand All @@ -121,7 +121,7 @@ impl<'d> Iterator for SBCompileUnitLineEntryIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBCompileUnitLineEntryIter<'d> {}
impl ExactSizeIterator for SBCompileUnitLineEntryIter<'_> {}

#[cfg(feature = "graphql")]
#[juniper::graphql_object]
Expand Down
12 changes: 6 additions & 6 deletions src/debugger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ pub struct SBDebuggerTargetIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBDebuggerTargetIter<'d> {
impl Iterator for SBDebuggerTargetIter<'_> {
type Item = SBTarget;

fn next(&mut self) -> Option<SBTarget> {
Expand All @@ -492,7 +492,7 @@ impl<'d> Iterator for SBDebuggerTargetIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBDebuggerTargetIter<'d> {}
impl ExactSizeIterator for SBDebuggerTargetIter<'_> {}

impl Clone for SBDebugger {
fn clone(&self) -> SBDebugger {
Expand Down Expand Up @@ -527,7 +527,7 @@ pub struct SBDebuggerPlatformIter<'d> {
idx: u32,
}

impl<'d> Iterator for SBDebuggerPlatformIter<'d> {
impl Iterator for SBDebuggerPlatformIter<'_> {
type Item = SBPlatform;

fn next(&mut self) -> Option<SBPlatform> {
Expand All @@ -548,15 +548,15 @@ impl<'d> Iterator for SBDebuggerPlatformIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBDebuggerPlatformIter<'d> {}
impl ExactSizeIterator for SBDebuggerPlatformIter<'_> {}

/// Iterate over the available platforms.
pub struct SBDebuggerAvailablePlatformIter<'d> {
debugger: &'d SBDebugger,
idx: u32,
}

impl<'d> Iterator for SBDebuggerAvailablePlatformIter<'d> {
impl Iterator for SBDebuggerAvailablePlatformIter<'_> {
type Item = SBStructuredData;

fn next(&mut self) -> Option<SBStructuredData> {
Expand All @@ -577,7 +577,7 @@ impl<'d> Iterator for SBDebuggerAvailablePlatformIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBDebuggerAvailablePlatformIter<'d> {}
impl ExactSizeIterator for SBDebuggerAvailablePlatformIter<'_> {}

#[cfg(feature = "graphql")]
impl ::juniper::Context for SBDebugger {}
Expand Down
4 changes: 2 additions & 2 deletions src/filespeclist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pub struct SBFileSpecListIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBFileSpecListIter<'d> {
impl Iterator for SBFileSpecListIter<'_> {
type Item = SBFileSpec;

fn next(&mut self) -> Option<SBFileSpec> {
Expand All @@ -123,4 +123,4 @@ impl<'d> Iterator for SBFileSpecListIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBFileSpecListIter<'d> {}
impl ExactSizeIterator for SBFileSpecListIter<'_> {}
4 changes: 2 additions & 2 deletions src/instructionlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub struct SBInstructionListIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBInstructionListIter<'d> {
impl Iterator for SBInstructionListIter<'_> {
type Item = SBInstruction;

fn next(&mut self) -> Option<SBInstruction> {
Expand All @@ -125,4 +125,4 @@ impl<'d> Iterator for SBInstructionListIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBInstructionListIter<'d> {}
impl ExactSizeIterator for SBInstructionListIter<'_> {}
2 changes: 1 addition & 1 deletion src/launchinfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,4 +303,4 @@ impl<'d> Iterator for SBLaunchInfoArgumentsIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBLaunchInfoArgumentsIter<'d> {}
impl ExactSizeIterator for SBLaunchInfoArgumentsIter<'_> {}
2 changes: 1 addition & 1 deletion src/memoryregioninfo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ pub struct SBMemoryRegionInfoDirtyPageIter<'d> {
idx: u32,
}

impl<'d> Iterator for SBMemoryRegionInfoDirtyPageIter<'d> {
impl Iterator for SBMemoryRegionInfoDirtyPageIter<'_> {
type Item = lldb_addr_t;

fn next(&mut self) -> Option<Self::Item> {
Expand Down
4 changes: 2 additions & 2 deletions src/memoryregioninfolist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ pub struct SBMemoryRegionInfoListIter<'d> {
idx: u32,
}

impl<'d> Iterator for SBMemoryRegionInfoListIter<'d> {
impl Iterator for SBMemoryRegionInfoListIter<'_> {
type Item = SBMemoryRegionInfo;

fn next(&mut self) -> Option<SBMemoryRegionInfo> {
Expand All @@ -104,4 +104,4 @@ impl<'d> Iterator for SBMemoryRegionInfoListIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBMemoryRegionInfoListIter<'d> {}
impl ExactSizeIterator for SBMemoryRegionInfoListIter<'_> {}
8 changes: 4 additions & 4 deletions src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ pub struct SBModuleSectionIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBModuleSectionIter<'d> {
impl Iterator for SBModuleSectionIter<'_> {
type Item = SBSection;

fn next(&mut self) -> Option<SBSection> {
Expand All @@ -140,7 +140,7 @@ impl<'d> Iterator for SBModuleSectionIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBModuleSectionIter<'d> {}
impl ExactSizeIterator for SBModuleSectionIter<'_> {}

/// Iterate over the [symbols] in a [module].
///
Expand All @@ -151,7 +151,7 @@ pub struct SBModuleSymbolsIter<'d> {
index: usize,
}

impl<'d> Iterator for SBModuleSymbolsIter<'d> {
impl Iterator for SBModuleSymbolsIter<'_> {
type Item = SBSymbol;

fn next(&mut self) -> Option<Self::Item> {
Expand All @@ -178,7 +178,7 @@ impl<'d> Iterator for SBModuleSymbolsIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBModuleSymbolsIter<'d> {}
impl ExactSizeIterator for SBModuleSymbolsIter<'_> {}

impl Clone for SBModule {
fn clone(&self) -> SBModule {
Expand Down
6 changes: 3 additions & 3 deletions src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ pub struct SBProcessThreadIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBProcessThreadIter<'d> {
impl Iterator for SBProcessThreadIter<'_> {
type Item = SBThread;

fn next(&mut self) -> Option<SBThread> {
Expand Down Expand Up @@ -679,7 +679,7 @@ pub struct SBProcessQueueIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBProcessQueueIter<'d> {
impl Iterator for SBProcessQueueIter<'_> {
type Item = SBQueue;

fn next(&mut self) -> Option<SBQueue> {
Expand Down Expand Up @@ -812,7 +812,7 @@ impl<'d> Iterator for SBProcessEventRestartedReasonIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBProcessEventRestartedReasonIter<'d> {}
impl ExactSizeIterator for SBProcessEventRestartedReasonIter<'_> {}

#[cfg(feature = "graphql")]
#[juniper::graphql_object]
Expand Down
8 changes: 4 additions & 4 deletions src/queue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ pub struct SBQueueThreadIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBQueueThreadIter<'d> {
impl Iterator for SBQueueThreadIter<'_> {
type Item = SBThread;

fn next(&mut self) -> Option<SBThread> {
Expand All @@ -163,7 +163,7 @@ impl<'d> Iterator for SBQueueThreadIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBQueueThreadIter<'d> {}
impl ExactSizeIterator for SBQueueThreadIter<'_> {}

/// Iterate over the [queue items] in a [queue].
///
Expand All @@ -174,7 +174,7 @@ pub struct SBQueueQueueItemIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBQueueQueueItemIter<'d> {
impl Iterator for SBQueueQueueItemIter<'_> {
type Item = SBQueueItem;

fn next(&mut self) -> Option<SBQueueItem> {
Expand All @@ -195,7 +195,7 @@ impl<'d> Iterator for SBQueueQueueItemIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBQueueQueueItemIter<'d> {}
impl ExactSizeIterator for SBQueueQueueItemIter<'_> {}

#[cfg(feature = "graphql")]
#[juniper::graphql_object]
Expand Down
4 changes: 2 additions & 2 deletions src/section.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ pub struct SBSectionSubSectionIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBSectionSubSectionIter<'d> {
impl Iterator for SBSectionSubSectionIter<'_> {
type Item = SBSection;

fn next(&mut self) -> Option<SBSection> {
Expand All @@ -165,7 +165,7 @@ impl<'d> Iterator for SBSectionSubSectionIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBSectionSubSectionIter<'d> {}
impl ExactSizeIterator for SBSectionSubSectionIter<'_> {}

impl Clone for SBSection {
fn clone(&self) -> SBSection {
Expand Down
2 changes: 1 addition & 1 deletion src/stringlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,4 @@ impl<'d> Iterator for SBStringListIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBStringListIter<'d> {}
impl ExactSizeIterator for SBStringListIter<'_> {}
4 changes: 2 additions & 2 deletions src/symbolcontextlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ pub struct SBSymbolContextListIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBSymbolContextListIter<'d> {
impl Iterator for SBSymbolContextListIter<'_> {
type Item = SBSymbolContext;

fn next(&mut self) -> Option<SBSymbolContext> {
Expand All @@ -119,4 +119,4 @@ impl<'d> Iterator for SBSymbolContextListIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBSymbolContextListIter<'d> {}
impl ExactSizeIterator for SBSymbolContextListIter<'_> {}
16 changes: 8 additions & 8 deletions src/target.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ pub struct SBTargetBreakpointIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBTargetBreakpointIter<'d> {
impl Iterator for SBTargetBreakpointIter<'_> {
type Item = SBBreakpoint;

fn next(&mut self) -> Option<SBBreakpoint> {
Expand All @@ -454,7 +454,7 @@ impl<'d> Iterator for SBTargetBreakpointIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBTargetBreakpointIter<'d> {}
impl ExactSizeIterator for SBTargetBreakpointIter<'_> {}

/// Iterate over the [watchpoints] in a [target].
///
Expand All @@ -465,7 +465,7 @@ pub struct SBTargetWatchpointIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBTargetWatchpointIter<'d> {
impl Iterator for SBTargetWatchpointIter<'_> {
type Item = SBWatchpoint;

fn next(&mut self) -> Option<SBWatchpoint> {
Expand All @@ -486,7 +486,7 @@ impl<'d> Iterator for SBTargetWatchpointIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBTargetWatchpointIter<'d> {}
impl ExactSizeIterator for SBTargetWatchpointIter<'_> {}

#[allow(missing_docs)]
pub struct SBTargetEvent<'e> {
Expand Down Expand Up @@ -520,7 +520,7 @@ pub struct SBTargetEventModuleIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBTargetEventModuleIter<'d> {
impl Iterator for SBTargetEventModuleIter<'_> {
type Item = SBModule;

fn next(&mut self) -> Option<SBModule> {
Expand All @@ -542,7 +542,7 @@ impl<'d> Iterator for SBTargetEventModuleIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBTargetEventModuleIter<'d> {}
impl ExactSizeIterator for SBTargetEventModuleIter<'_> {}

/// Iterate over the [modules] in a [target].
///
Expand All @@ -553,7 +553,7 @@ pub struct SBTargetModuleIter<'d> {
idx: u32,
}

impl<'d> Iterator for SBTargetModuleIter<'d> {
impl Iterator for SBTargetModuleIter<'_> {
type Item = SBModule;

fn next(&mut self) -> Option<SBModule> {
Expand All @@ -574,7 +574,7 @@ impl<'d> Iterator for SBTargetModuleIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBTargetModuleIter<'d> {}
impl ExactSizeIterator for SBTargetModuleIter<'_> {}

#[cfg(feature = "graphql")]
#[juniper::graphql_object]
Expand Down
4 changes: 2 additions & 2 deletions src/thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ pub struct SBThreadFrameIter<'d> {
idx: usize,
}

impl<'d> Iterator for SBThreadFrameIter<'d> {
impl Iterator for SBThreadFrameIter<'_> {
type Item = SBFrame;

fn next(&mut self) -> Option<SBFrame> {
Expand All @@ -363,7 +363,7 @@ impl<'d> Iterator for SBThreadFrameIter<'d> {
}
}

impl<'d> ExactSizeIterator for SBThreadFrameIter<'d> {}
impl ExactSizeIterator for SBThreadFrameIter<'_> {}

impl Clone for SBThread {
fn clone(&self) -> SBThread {
Expand Down
Loading

0 comments on commit 569413d

Please sign in to comment.