Elided unnecessary lifetime in CellView impl
This commit is contained in:
@ -5,7 +5,7 @@ use core::cell::Cell;
|
|||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct CellView<'a, T: Copy>(&'a Cell<T>);
|
pub struct CellView<'a, T: Copy>(&'a Cell<T>);
|
||||||
|
|
||||||
impl<'a, T: Copy> CellView<'a, T> {
|
impl<T: Copy> CellView<'_, T> {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn get(self) -> T {
|
pub fn get(self) -> T {
|
||||||
self.0.get()
|
self.0.get()
|
||||||
|
Reference in New Issue
Block a user