Skip to content

Commit b40e7da

Browse files
committed
Suppress unusefull warning
1 parent dcb9da6 commit b40e7da

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/io/mhap.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ pub struct Writer<W: std::io::Write> {
116116

117117
impl Writer<fs::File> {
118118
/// Write to a given file path in given format.
119+
#[allow(dead_code)]
119120
pub fn to_file<P: AsRef<Path>>(path: P) -> std::io::Result<Self> {
120121
fs::File::create(path).map(|f| Writer::new(f))
121122
}

src/io/paf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ pub struct Writer<W: std::io::Write> {
125125

126126
impl Writer<fs::File> {
127127
/// Write to a given file path in given format.
128+
#[allow(dead_code)]
128129
pub fn to_file<P: AsRef<Path>>(path: P) -> std::io::Result<Self> {
129130
fs::File::create(path).map(|f| Writer::new(f))
130131
}

tests/realistic_scenario.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ extern crate xz2;
2525

2626
use std::collections::HashSet;
2727
use std::fs;
28+
#[allow(unused_imports)]
2829
use std::io::Read;
2930
use std::process::{Command, Stdio};
3031

0 commit comments

Comments
 (0)