File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
//! Pipelined extraction into a filesystem directory.
2
2
3
+ #![ cfg_attr( not( unix) , allow( dead_code) ) ]
4
+
3
5
pub mod path_splitting {
4
6
use displaydoc:: Display ;
5
7
use thiserror:: Error ;
@@ -461,6 +463,7 @@ pub mod handle_creation {
461
463
FSEntry :: File ( data) => {
462
464
let key = ZipDataHandle :: wrap ( data) ;
463
465
466
+ #[ cfg_attr( not( unix) , allow( unused_variables) ) ]
464
467
if let Some ( mode) = data. unix_mode ( ) {
465
468
/* TODO: consider handling the readonly bit on windows. We don't currently
466
469
* do this in normal extraction, so we don't need to do this yet for
@@ -478,6 +481,7 @@ pub mod handle_creation {
478
481
. open ( path) ?;
479
482
assert ! ( file_handle_mapping. insert( key, handle) . is_none( ) ) ;
480
483
}
484
+ #[ cfg_attr( not( unix) , allow( unused_variables) ) ]
481
485
FSEntry :: Dir ( DirEntry {
482
486
properties,
483
487
children,
@@ -555,6 +559,7 @@ pub mod handle_creation {
555
559
. unwrap ( ) ;
556
560
557
561
/* (2) Generate handles. */
562
+ #[ cfg_attr( not( unix) , allow( unused_variables) ) ]
558
563
let AllocatedHandles {
559
564
file_handle_mapping,
560
565
perms_todo,
Original file line number Diff line number Diff line change 1
1
//! Traits for splitting and teeing file contents into multiple parallel streams.
2
2
3
+ #![ cfg_attr( not( unix) , allow( dead_code) ) ]
4
+
3
5
macro_rules! interruptible_buffered_io_op {
4
6
( $op: expr) => {
5
7
match $op {
@@ -10,6 +12,7 @@ macro_rules! interruptible_buffered_io_op {
10
12
} ;
11
13
}
12
14
15
+ #[ cfg_attr( not( unix) , allow( unused_macros) ) ]
13
16
macro_rules! syscall_errno {
14
17
( $syscall: expr) => {
15
18
match $syscall {
You can’t perform that action at this time.
0 commit comments