Skip to content

Commit 1a98a22

Browse files
rdelfinpvdrz
authored andcommitted
Revert formatting changes
1 parent a90bd84 commit 1a98a22

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

bindgen-cli/options.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,8 +1089,8 @@ where
10891089
&self,
10901090
info: &bindgen::callbacks::DeriveInfo<'_>,
10911091
) -> Vec<String> {
1092-
if self.kind.map(|kind| kind == info.kind).unwrap_or(true)
1093-
&& self.regex_set.matches(info.name)
1092+
if self.kind.map(|kind| kind == info.kind).unwrap_or(true) &&
1093+
self.regex_set.matches(info.name)
10941094
{
10951095
return self.derives.clone();
10961096
}

bindgen/lib.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ pub const DEFAULT_ANON_FIELDS_PREFIX: &str = "__bindgen_anon_";
8787
const DEFAULT_NON_EXTERN_FNS_SUFFIX: &str = "__extern";
8888

8989
fn file_is_cpp(name_file: &str) -> bool {
90-
name_file.ends_with(".hpp")
91-
|| name_file.ends_with(".hxx")
92-
|| name_file.ends_with(".hh")
93-
|| name_file.ends_with(".h++")
90+
name_file.ends_with(".hpp") ||
91+
name_file.ends_with(".hxx") ||
92+
name_file.ends_with(".hh") ||
93+
name_file.ends_with(".h++")
9494
}
9595

9696
fn args_are_cpp(clang_args: &[Box<str>]) -> bool {
@@ -799,8 +799,8 @@ impl Bindings {
799799
return false;
800800
}
801801

802-
if arg.starts_with("-I")
803-
|| arg.starts_with("--include-directory=")
802+
if arg.starts_with("-I") ||
803+
arg.starts_with("--include-directory=")
804804
{
805805
return false;
806806
}
@@ -827,8 +827,8 @@ impl Bindings {
827827
debug!("Found clang: {:?}", clang);
828828

829829
// Whether we are working with C or C++ inputs.
830-
let is_cpp = args_are_cpp(&options.clang_args)
831-
|| options.input_headers.iter().any(|h| file_is_cpp(h));
830+
let is_cpp = args_are_cpp(&options.clang_args) ||
831+
options.input_headers.iter().any(|h| file_is_cpp(h));
832832

833833
let search_paths = if is_cpp {
834834
clang.cpp_search_paths

0 commit comments

Comments
 (0)