Skip to content

Commit 777954d

Browse files
committed
rust: run cargo fmt against the codebase
1 parent 8157037 commit 777954d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

rust/bear/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
fn 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+
}

rust/bear/src/semantic/tools/gcc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ use nom::multi::many1;
55
use nom::sequence::preceded;
66

77
use super::super::{Meaning, RecognitionResult, Tool};
8-
use internal::Argument;
98
use intercept::Execution;
9+
use internal::Argument;
1010

1111
pub(super) struct Gcc {}
1212

rust/intercept/src/bin/wrapper.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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.
6161
fn 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

0 commit comments

Comments
 (0)