File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22// SPDX-FileCopyrightText: Copyright the Vortex contributors
33
44use std:: io;
5- #[ cfg( unix) ]
6- use std:: os:: unix:: fs:: FileExt ;
75#[ cfg( not( unix) ) ]
86use std:: io:: { Read , Seek } ;
7+ #[ cfg( unix) ]
8+ use std:: os:: unix:: fs:: FileExt ;
99use std:: sync:: Arc ;
1010
1111use async_compat:: Compat ;
@@ -127,8 +127,9 @@ impl ReadSource for ObjectStoreIoSource {
127127 )
128128 . await ?;
129129
130+ #[ cfg_attr( unix, allow( unused_mut) ) ]
130131 let buffer = match response. payload {
131- object_store:: GetResultPayload :: File ( file, _) => {
132+ object_store:: GetResultPayload :: File ( mut file, _) => {
132133 // SAFETY: We're setting the length to the exact size we're about to read.
133134 // The read_exact_at call will either fill the entire buffer or return an error,
134135 // ensuring no uninitialized memory is exposed.
You can’t perform that action at this time.
0 commit comments