File tree Expand file tree Collapse file tree 6 files changed +22
-8
lines changed
foyer-experimental-bench/src Expand file tree Collapse file tree 6 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 3636 uses : ludeeus/action-shellcheck@master
3737 rust-test :
3838 name : rust test with codecov
39- runs-on : ubuntu-latest
39+ runs-on : ${{ matrix.os }}
40+ strategy :
41+ matrix :
42+ os : [ubuntu-latest, macos-latest]
4043 steps :
4144 - name : Checkout
4245 uses : actions/checkout@v3
Original file line number Diff line number Diff line change 4343 uses : ludeeus/action-shellcheck@master
4444 rust-test :
4545 name : rust test with codecov
46- runs-on : ubuntu-latest
46+ runs-on : ${{ matrix.os }}
47+ strategy :
48+ matrix :
49+ os : [ubuntu-latest, macos-latest]
4750 steps :
4851 - name : Checkout
4952 uses : actions/checkout@v3
Original file line number Diff line number Diff line change 4242 uses : ludeeus/action-shellcheck@master
4343 rust-test :
4444 name : rust test with codecov
45- runs-on : ubuntu-latest
45+ runs-on : ${{ matrix.os }}
46+ strategy :
47+ matrix :
48+ os : [ubuntu-latest, macos-latest]
4649 steps :
4750 - name : Checkout
4851 uses : actions/checkout@v3
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ use std::path::{Path, PathBuf};
3131use itertools:: Itertools ;
3232use nix:: { fcntl:: readlink, sys:: stat:: stat} ;
3333
34- #[ cfg_attr( not( target_os = "linux" ) , expect( dead_code) ) ]
34+ // TODO(MrCroxx): use `expect` after `lint_reasons` is stable.
35+ #[ cfg_attr( not( target_os = "linux" ) , allow( dead_code) ) ]
3536#[ derive( PartialEq , Clone , Copy , Debug ) ]
3637pub enum FsType {
3738 Xfs ,
@@ -41,7 +42,8 @@ pub enum FsType {
4142 Others ,
4243}
4344
44- #[ cfg_attr( not( target_os = "linux" ) , expect( unused_variables) ) ]
45+ // TODO(MrCroxx): use `expect` after `lint_reasons` is stable.
46+ #[ cfg_attr( not( target_os = "linux" ) , allow( unused_variables) ) ]
4547pub fn detect_fs_type ( path : impl AsRef < Path > ) -> FsType {
4648 #[ cfg( target_os = "linux" ) ]
4749 {
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ use std::path::{Path, PathBuf};
3131use itertools:: Itertools ;
3232use nix:: { fcntl:: readlink, sys:: stat:: stat} ;
3333
34- #[ cfg_attr( not( target_os = "linux" ) , expect( dead_code) ) ]
34+ // TODO(MrCroxx): use `expect` after `lint_reasons` is stable.
35+ #[ cfg_attr( not( target_os = "linux" ) , allow( dead_code) ) ]
3536#[ derive( PartialEq , Clone , Copy , Debug ) ]
3637pub enum FsType {
3738 Xfs ,
@@ -41,7 +42,8 @@ pub enum FsType {
4142 Others ,
4243}
4344
44- #[ cfg_attr( not( target_os = "linux" ) , expect( unused_variables) ) ]
45+ // TODO(MrCroxx): use `expect` after `lint_reasons` is stable.
46+ #[ cfg_attr( not( target_os = "linux" ) , allow( unused_variables) ) ]
4547pub fn detect_fs_type ( path : impl AsRef < Path > ) -> FsType {
4648 #[ cfg( target_os = "linux" ) ]
4749 {
Original file line number Diff line number Diff line change @@ -62,7 +62,8 @@ impl FsDeviceConfig {
6262struct FsDeviceInner {
6363 config : FsDeviceConfig ,
6464
65- #[ cfg_attr( not( target_os = "linux" ) , expect( dead_code) ) ]
65+ // TODO(MrCroxx): use `expect` after `lint_reasons` is stable.
66+ #[ cfg_attr( not( target_os = "linux" ) , allow( dead_code) ) ]
6667 dir : File ,
6768
6869 files : Vec < File > ,
You can’t perform that action at this time.
0 commit comments