Skip to content

Commit 7206fe3

Browse files
committed
fix(rt): Sleep::downcast_mut_pin() no longer extend lifetime
This lifetime extension was a mistake. Closes #3556 BREAKING CHANGE: The returned lifetime from `Sleep::downcast_mut_pin()` is no longer `'static`. This shouldn't affect most usage. This sort of breaking change is needed because it is _wrong_.
1 parent 90eb95f commit 7206fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rt/timer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl dyn Sleep {
104104
}
105105

106106
/// Downcast a pinned &mut Sleep object to its original type
107-
pub fn downcast_mut_pin<T>(self: Pin<&mut Self>) -> Option<Pin<&'static mut T>>
107+
pub fn downcast_mut_pin<T>(self: Pin<&mut Self>) -> Option<Pin<&mut T>>
108108
where
109109
T: Sleep + 'static,
110110
{

0 commit comments

Comments
 (0)