Skip to content

Commit c3da77e

Browse files
committed
Update rustfmt.toml. Run cargo +nightly fmt
1 parent b3eb905 commit c3da77e

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

rustfmt.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
version = "Two"
2-
edition = "2018"
2+
edition = "2021"
33

44
max_width = 100
5-
error_on_line_overflow = true
6-
error_on_unformatted = true
5+
error_on_line_overflow = false
6+
error_on_unformatted = false
77

88
normalize_comments = true
99

1010
use_small_heuristics = "Max"
11-
fn_args_layout = "Compressed"
11+
fn_params_layout = "Compressed"
1212
overflow_delimited_expr = true
1313
where_single_line = true
1414

1515
reorder_impl_items = true
16+
group_imports = "StdExternalCrate"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
//! `queue-file` crate is a feature complete and binary compatible port of `QueueFile` class from
1717
//! Tape2 by Square, Inc. Check the original project [here](https://github.com/square/tape).
1818
19-
use snafu::{ensure, Snafu};
2019
use std::cmp::min;
2120
use std::fs::{rename, File, OpenOptions};
2221
use std::io;
@@ -26,6 +25,7 @@ use std::mem::ManuallyDrop;
2625
use std::path::Path;
2726

2827
use bytes::{Buf, BufMut, BytesMut};
28+
use snafu::{ensure, Snafu};
2929

3030
#[derive(Debug, Snafu)]
3131
pub enum Error {

tests/test.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
use std::collections::VecDeque;
22

3+
use queue_file::{OffsetCacheKind, QueueFile};
34
use quickcheck_macros::quickcheck;
45
use test_case::test_case;
56

6-
use queue_file::{OffsetCacheKind, QueueFile};
7-
87
#[test_case(true; "with overwrite")]
98
#[test_case(false; "with no overwrite")]
109
fn queue_capacity_preserved(is_overwrite: bool) {

0 commit comments

Comments
 (0)