Skip to content

Commit d79f324

Browse files
committed
styling
1 parent cef8e1b commit d79f324

94 files changed

Lines changed: 175 additions & 767 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

build.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
use std::env::VarError;
2-
use std::process::{
3-
Command,
4-
Output,
5-
};
6-
use std::{
7-
env,
8-
str,
9-
};
2+
use std::process::{Command, Output};
3+
use std::{env, str};
104

115
// List of cfgs this build script is allowed to set. The list is needed to support check-cfg, as we
126
// need to know all the possible cfgs that this script will set. If you need to set another cfg

ci/ios/deploy_and_run_on_ios_simulator.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,11 @@
66
// (https://github.com/snipsco/dinghy): cargo dinghy install, then cargo dinghy
77
// test.
88

9-
use std::fs::{
10-
self,
11-
File,
12-
};
9+
use std::fs::{self, File};
1310
use std::io::Write;
1411
use std::path::Path;
1512
use std::process::Command;
16-
use std::{
17-
env,
18-
process,
19-
};
13+
use std::{env, process};
2014

2115
macro_rules! t {
2216
($e:expr) => {

ci/runtest-android.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
use std::env;
2-
use std::path::{
3-
Path,
4-
PathBuf,
5-
};
2+
use std::path::{Path, PathBuf};
63
use std::process::Command;
74

85
fn main() {

ctest-test/src/t1.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
#![allow(dead_code)]
22

3-
use std::ffi::{
4-
c_char,
5-
c_double,
6-
c_int,
7-
c_long,
8-
c_uint,
9-
c_void,
10-
};
3+
use std::ffi::{c_char, c_double, c_int, c_long, c_uint, c_void};
114

125
pub type T1Foo = i32;
136
pub const T1S: *const c_char = b"foo\0".as_ptr().cast();

ctest-test/src/t2.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#![allow(non_camel_case_types)]
22

3-
use std::ffi::{
4-
c_char,
5-
c_int,
6-
};
3+
use std::ffi::{c_char, c_int};
74

85
pub type T2Foo = u32;
96
pub type T2Bar = u32;

ctest-test/tests/all.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33

44
use std::collections::HashSet;
55
use std::env;
6-
use std::process::{
7-
Command,
8-
ExitStatus,
9-
};
6+
use std::process::{Command, ExitStatus};
107

118
/// Create a command that starts in the `target/debug` or `target/release` directory.
129
fn cmd(name: &str) -> Command {

ctest/src/ast/function.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use crate::{
2-
Abi,
3-
BoxStr,
4-
Parameter,
5-
};
1+
use crate::{Abi, BoxStr, Parameter};
62

73
/// Represents a function signature defined in Rust.
84
///

ctest/src/ast/static_variable.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use crate::{
2-
Abi,
3-
BoxStr,
4-
};
1+
use crate::{Abi, BoxStr};
52

63
/// Represents a static variable in Rust.
74
///

ctest/src/ast/structure.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use crate::{
2-
BoxStr,
3-
Field,
4-
};
1+
use crate::{BoxStr, Field};
52

63
/// Represents a struct defined in Rust.
74
#[derive(Debug, Clone)]

ctest/src/ast/union.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use crate::{
2-
BoxStr,
3-
Field,
4-
};
1+
use crate::{BoxStr, Field};
52

63
/// Represents a union defined in Rust.
74
#[derive(Debug, Clone)]

0 commit comments

Comments
 (0)