Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ jobs:
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt

- name: Style check
if: matrix.toolchain == 'nightly'
run: cargo fmt --all --check

- name: Cargo build
run: cargo build --verbose
Expand Down
6 changes: 4 additions & 2 deletions benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@

extern crate test;

use self::test::Bencher;
use smallvec::{ExtendFromSlice, smallvec, SmallVec};
use {
self::test::Bencher,
smallvec::{smallvec, ExtendFromSlice, SmallVec},
};

const VEC_SIZE: usize = 16;
const SPILLED_SIZE: usize = 100;
Expand Down
4 changes: 4 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
wrap_comments = true
imports_granularity = "Preserve"
group_imports = "One"
format_code_in_doc_comments = true
6 changes: 4 additions & 2 deletions src/arbitrary.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use crate::{Array, SmallVec};
use arbitrary::{Arbitrary, Unstructured};
use {
crate::{Array, SmallVec},
arbitrary::{Arbitrary, Unstructured},
};

impl<'a, A: Array> Arbitrary<'a> for SmallVec<A>
where
Expand Down
Loading
Loading