File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 33fn main ( ) {
44 println ! ( "cargo:rustc-env=WRAPPER_EXECUTABLE_PATH=/usr/libexec/bear/wrapper" ) ;
55 println ! ( "cargo:rustc-env=PRELOAD_LIBRARY_PATH=/usr/libexec/bear/$LIB/libexec.so" ) ;
6- }
6+ }
Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ use nom::multi::many1;
55use nom:: sequence:: preceded;
66
77use super :: super :: { Meaning , RecognitionResult , Tool } ;
8- use internal:: Argument ;
98use intercept:: Execution ;
9+ use internal:: Argument ;
1010
1111pub ( super ) struct Gcc { }
1212
Original file line number Diff line number Diff line change @@ -59,11 +59,14 @@ fn main() -> Result<()> {
5959/// will be the name of the soft link. This function returns the file name
6060/// of the soft link.
6161fn file_name_from_arguments ( ) -> Result < PathBuf > {
62- std:: env:: args ( ) . next ( )
62+ std:: env:: args ( )
63+ . next ( )
6364 . ok_or_else ( || anyhow:: anyhow!( "Cannot get first argument" ) )
6465 . and_then ( |arg| match PathBuf :: from ( arg) . file_name ( ) {
6566 Some ( file_name) => Ok ( PathBuf :: from ( file_name) ) ,
66- None => Err ( anyhow:: anyhow!( "Cannot get the file name from the argument" ) ) ,
67+ None => Err ( anyhow:: anyhow!(
68+ "Cannot get the file name from the argument"
69+ ) ) ,
6770 } )
6871}
6972
You can’t perform that action at this time.
0 commit comments