Skip to content

Commit a527413

Browse files
dgreidabrestic-rivos
authored andcommitted
page-tracking: Remove static lifetime on DeRef in PageBox
See: rust-lang/rust#105572 Trait implementations adding more restrictive constrains to a trait definition will soon be an error. Luckily, it doesn't seem that this 'static lifetime bound is needed by `PageBox` so remove it to make newer versions of rust happy. Signed-off-by: Dylan Reid <[email protected]>
1 parent 7e74e3f commit a527413

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page-tracking/src/collections/page_box.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ impl<T> Clone for StaticPageRef<T> {
277277
impl<T> Deref for StaticPageRef<T> {
278278
type Target = T;
279279

280-
fn deref(&self) -> &'static T {
280+
fn deref(&self) -> &T {
281281
// Safe because this pointer is guaranteed to be valid in the constructor.
282282
unsafe { self.0.as_ref() }
283283
}

0 commit comments

Comments
 (0)