Skip to content

Commit

Permalink
apply Joonas's suggestion re 'static lifetime; #4994 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
problame committed Aug 18, 2023
1 parent 08a5a2e commit 8e891e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pageserver/src/tenant/block_io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub enum BlockLease<'a> {
Rc(std::rc::Rc<[u8; PAGE_SZ]>),
}

impl<'a> From<PageReadGuard<'static>> for BlockLease<'a> {
impl From<PageReadGuard<'static>> for BlockLease<'static> {
fn from(value: PageReadGuard<'static>) -> BlockLease<'static> {
BlockLease::PageReadGuard(value)
}
Expand Down

0 comments on commit 8e891e3

Please sign in to comment.