File tree 2 files changed +6
-6
lines changed
turbopack/crates/turbo-tasks-backend/src
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ impl KeyBase for WriteBuffer<'_> {
160
160
161
161
impl StoreKey for WriteBuffer < ' _ > {
162
162
fn write_to ( & self , buf : & mut Vec < u8 > ) {
163
- buf. extend_from_slice ( & * * self ) ;
163
+ buf. extend_from_slice ( self ) ;
164
164
}
165
165
}
166
166
@@ -184,9 +184,9 @@ impl PartialOrd for WriteBuffer<'_> {
184
184
}
185
185
}
186
186
187
- impl < ' l > Into < ValueBuffer < ' l > > for WriteBuffer < ' l > {
188
- fn into ( self ) -> ValueBuffer < ' l > {
189
- match self {
187
+ impl < ' l > From < WriteBuffer < ' l > > for ValueBuffer < ' l > {
188
+ fn from ( val : WriteBuffer < ' l > ) -> Self {
189
+ match val {
190
190
WriteBuffer :: Borrowed ( b) => ValueBuffer :: Borrowed ( b) ,
191
191
WriteBuffer :: Vec ( v) => ValueBuffer :: Vec ( v) ,
192
192
WriteBuffer :: SmallVec ( sv) => ValueBuffer :: SmallVec ( sv) ,
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const POT_CONFIG: pot::Config = pot::Config::new().compatibility(pot::Compatibil
26
26
27
27
fn pot_serialize_small_vec < T : Serialize > ( value : & T ) -> pot:: Result < SmallVec < [ u8 ; 16 ] > > {
28
28
struct SmallVecWrite < ' l > ( & ' l mut SmallVec < [ u8 ; 16 ] > ) ;
29
- impl < ' l > std:: io:: Write for SmallVecWrite < ' l > {
29
+ impl std:: io:: Write for SmallVecWrite < ' _ > {
30
30
#[ inline]
31
31
fn write ( & mut self , buf : & [ u8 ] ) -> std:: io:: Result < usize > {
32
32
self . 0 . extend_from_slice ( buf) ;
@@ -349,7 +349,7 @@ impl<T: KeyValueDatabase + Send + Sync + 'static> BackingStorage
349
349
. put (
350
350
key_space,
351
351
WriteBuffer :: Borrowed ( IntKey :: new ( * task_id) . as_ref ( ) ) ,
352
- value. into ( ) ,
352
+ value,
353
353
)
354
354
. with_context ( || anyhow ! ( "Unable to write data items for {task_id}" ) ) ?;
355
355
}
You can’t perform that action at this time.
0 commit comments