Skip to content

Commit

Permalink
Fix EventLoop elided lifetime warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Morais committed Jan 17, 2025
1 parent 9403545 commit f7e67ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvml-wrapper/src/high_level/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ pub trait EventLoopProvider {
fn create_event_loop<'nvml>(
&'nvml self,
devices: Vec<&'nvml Device<'nvml>>,
) -> Result<EventLoop, NvmlErrorWithSource>;
) -> Result<EventLoop<'nvml>, NvmlErrorWithSource>;
}

impl EventLoopProvider for Nvml {
Expand All @@ -275,7 +275,7 @@ impl EventLoopProvider for Nvml {
fn create_event_loop<'nvml>(
&'nvml self,
devices: Vec<&Device<'nvml>>,
) -> Result<EventLoop, NvmlErrorWithSource> {
) -> Result<EventLoop<'nvml>, NvmlErrorWithSource> {
let mut set = self.create_event_set()?;

for d in devices {
Expand Down

0 comments on commit f7e67ec

Please sign in to comment.