Skip to content

Commit 04b79b0

Browse files
committed
fix: Add cast to _ for git_odb_stream.mode
1 parent 9d875cf commit 04b79b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/odb_backend.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ impl<B: OdbBackend> Backend<B> {
10751075
let stream = WriteStream::<B> {
10761076
parent: raw::git_odb_stream {
10771077
backend: backend_ptr,
1078-
mode: raw::GIT_STREAM_WRONLY,
1078+
mode: raw::GIT_STREAM_WRONLY as _,
10791079
hash_ctx: ptr::null_mut(),
10801080
declared_size: 0,
10811081
received_bytes: 0,
@@ -1121,7 +1121,7 @@ impl<B: OdbBackend> Backend<B> {
11211121
let stream = ReadStream::<B> {
11221122
parent: raw::git_odb_stream {
11231123
backend: backend_ptr,
1124-
mode: raw::GIT_STREAM_RDONLY,
1124+
mode: raw::GIT_STREAM_RDONLY as _,
11251125
hash_ctx: ptr::null_mut(),
11261126
declared_size: 0,
11271127
received_bytes: 0,

0 commit comments

Comments
 (0)