File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11version = " Two"
2- edition = " 2018 "
2+ edition = " 2021 "
33
44max_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
88normalize_comments = true
99
1010use_small_heuristics = " Max"
11- fn_args_layout = " Compressed"
11+ fn_params_layout = " Compressed"
1212overflow_delimited_expr = true
1313where_single_line = true
1414
1515reorder_impl_items = true
16+ group_imports = " StdExternalCrate"
Original file line number Diff line number Diff line change 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 } ;
2019use std:: cmp:: min;
2120use std:: fs:: { rename, File , OpenOptions } ;
2221use std:: io;
@@ -26,6 +25,7 @@ use std::mem::ManuallyDrop;
2625use std:: path:: Path ;
2726
2827use bytes:: { Buf , BufMut , BytesMut } ;
28+ use snafu:: { ensure, Snafu } ;
2929
3030#[ derive( Debug , Snafu ) ]
3131pub enum Error {
Original file line number Diff line number Diff line change 11use std:: collections:: VecDeque ;
22
3+ use queue_file:: { OffsetCacheKind , QueueFile } ;
34use quickcheck_macros:: quickcheck;
45use 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" ) ]
109fn queue_capacity_preserved ( is_overwrite : bool ) {
You can’t perform that action at this time.
0 commit comments