Skip to content

Commit 9ff0771

Browse files
committed
refactor: allow deprecated on streaming examples
1 parent 2995d86 commit 9ff0771

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

examples/network_streaming.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ fn server(header: BinseqHeader, sequence: &[u8]) -> Result<()> {
2525

2626
// Write sequences in a loop
2727
for i in 0..10 {
28+
#[allow(deprecated)]
2829
writer.write_record(Some(i), sequence)?;
2930
println!("Server: Sent record {i}");
3031

examples/streaming.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ fn main() -> Result<()> {
1818
.build(Cursor::new(Vec::new()))?;
1919

2020
// Write the sequence with flag 0
21+
#[allow(deprecated)]
2122
writer.write_record(Some(0), &sequence)?;
2223

2324
// Write the sequence with flag 1
25+
#[allow(deprecated)]
2426
writer.write_record(Some(1), &sequence)?;
2527

2628
// Flush and get the buffer

0 commit comments

Comments
 (0)