Skip to content

Commit

Permalink
Do not require using extern instead of extern C
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed Sep 12, 2019
1 parent 939a2e5 commit 005e64b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions ci/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
//! * No trailing whitespace
//! * No tabs
//! * 80-character lines
//! * `extern` instead of `extern "C"`
//! * Specific module layout:
//! 1. use directives
//! 2. typedefs
Expand Down Expand Up @@ -126,9 +125,6 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) {
if line.len() > 80 {
err.error(path, i, "line longer than 80 chars");
}
if line.contains("extern \"C\"") {
err.error(path, i, "use `extern` instead of `extern \"C\"");
}
if line.contains("#[cfg(") && !line.contains(" if ")
&& !(line.contains("target_endian") ||
line.contains("target_arch"))
Expand Down

0 comments on commit 005e64b

Please sign in to comment.