@@ -9,7 +9,8 @@ use anyhow::{anyhow, Result};
9
9
use gix:: {
10
10
hash:: ObjectId ,
11
11
object, objs, odb,
12
- odb:: { loose, pack, Write } ,
12
+ odb:: { loose, pack} ,
13
+ prelude:: Write ,
13
14
NestedProgress ,
14
15
} ;
15
16
@@ -96,8 +97,8 @@ enum OutputWriter {
96
97
Sink ( odb:: Sink ) ,
97
98
}
98
99
99
- impl gix:: odb :: Write for OutputWriter {
100
- fn write_buf ( & self , kind : object:: Kind , from : & [ u8 ] ) -> Result < ObjectId , gix:: odb :: write:: Error > {
100
+ impl gix:: objs :: Write for OutputWriter {
101
+ fn write_buf ( & self , kind : object:: Kind , from : & [ u8 ] ) -> Result < ObjectId , gix:: objs :: write:: Error > {
101
102
match self {
102
103
OutputWriter :: Loose ( db) => db. write_buf ( kind, from) ,
103
104
OutputWriter :: Sink ( db) => db. write_buf ( kind, from) ,
@@ -109,7 +110,7 @@ impl gix::odb::Write for OutputWriter {
109
110
kind : object:: Kind ,
110
111
size : u64 ,
111
112
from : & mut dyn Read ,
112
- ) -> Result < ObjectId , gix:: odb :: write:: Error > {
113
+ ) -> Result < ObjectId , gix:: objs :: write:: Error > {
113
114
match self {
114
115
OutputWriter :: Loose ( db) => db. write_stream ( kind, size, from) ,
115
116
OutputWriter :: Sink ( db) => db. write_stream ( kind, size, from) ,
0 commit comments