Skip to content

Commit bd6f46a

Browse files
committed
add get_ref to BufCopy
1 parent 7a75e55 commit bd6f46a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libsql-wal/src/io/file.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,10 @@ impl<W> BufCopy<W> {
214214
let Self { w, buf } = self;
215215
(w, buf)
216216
}
217+
218+
pub fn get_ref(&self) -> &W {
219+
&self.w
220+
}
217221
}
218222

219223
impl<W: Write> Write for BufCopy<W> {

0 commit comments

Comments
 (0)