Skip to content

Commit fa4b2ac

Browse files
committed
IOBoard/TracePin - Fix compilation errors under rust 1.92.0.
1 parent 27ed7b3 commit fa4b2ac

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ioboard/ioboard_trace/src/tracepin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ mod storage {
102102
}
103103
}
104104

105-
pub(crate) fn init<TRACEPINS: TracePins>(&self, trace_pins: TRACEPINS) {
105+
pub(crate) fn init<TRACEPINS: TracePins + 'static>(&self, trace_pins: TRACEPINS) {
106106
// FUTURE find a no-alloc way to do this in a safe way, avoiding the need for suppressing errors or warnings
107107

108108
// Leak the trace_pins to give it a true 'static lifetime
@@ -124,7 +124,7 @@ mod storage {
124124
unsafe impl Sync for TracePin {}
125125
}
126126

127-
pub fn init<TRACEPINS: TracePins>(trace_pins: TRACEPINS) {
127+
pub fn init<TRACEPINS: TracePins + 'static>(trace_pins: TRACEPINS) {
128128
#[cfg(feature = "enable")]
129129
storage::TRACE_PINS.init(trace_pins);
130130
}

0 commit comments

Comments
 (0)