We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27ed7b3 commit fa4b2acCopy full SHA for fa4b2ac
1 file changed
ioboard/ioboard_trace/src/tracepin.rs
@@ -102,7 +102,7 @@ mod storage {
102
}
103
104
105
- pub(crate) fn init<TRACEPINS: TracePins>(&self, trace_pins: TRACEPINS) {
+ pub(crate) fn init<TRACEPINS: TracePins + 'static>(&self, trace_pins: TRACEPINS) {
106
// FUTURE find a no-alloc way to do this in a safe way, avoiding the need for suppressing errors or warnings
107
108
// Leak the trace_pins to give it a true 'static lifetime
@@ -124,7 +124,7 @@ mod storage {
124
unsafe impl Sync for TracePin {}
125
126
127
-pub fn init<TRACEPINS: TracePins>(trace_pins: TRACEPINS) {
+pub fn init<TRACEPINS: TracePins + 'static>(trace_pins: TRACEPINS) {
128
#[cfg(feature = "enable")]
129
storage::TRACE_PINS.init(trace_pins);
130
0 commit comments