Skip to content

Commit

Permalink
Ignore ordering style for c_char
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Dec 17, 2024
1 parent bd30d1e commit c33744e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ci/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@
//! * alignment
//! * leading colons on paths
use std::env;
use std::fs;
use std::io::prelude::*;
use std::path::Path;
use std::{env, fs};

macro_rules! t {
($e:expr) => {
Expand Down Expand Up @@ -130,7 +129,7 @@ fn check_style(file: &str, path: &Path, err: &mut Errors) {
let line = if is_pub { &line[4..] } else { line };

let line_state = if line.starts_with("use ") {
if line.contains("c_void") {
if line.contains("c_void") || line.contains("c_char") {
continue;
}
if is_pub {
Expand Down

0 comments on commit c33744e

Please sign in to comment.