File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ impl TimestampedObservations {
28
28
const DEFAULT_BUFFER_SIZE : usize = 1_048_576 ;
29
29
30
30
pub fn new ( sample_types_len : usize ) -> Self {
31
+ #[ allow( clippy:: expect_used) ] // previous API panic'd implicitly
31
32
Self {
32
33
compressed_timestamped_data : zstd:: Encoder :: new (
33
34
Vec :: with_capacity ( Self :: DEFAULT_BUFFER_SIZE ) ,
@@ -39,6 +40,7 @@ impl TimestampedObservations {
39
40
}
40
41
41
42
pub fn with_no_backing_store ( ) -> Self {
43
+ #[ allow( clippy:: expect_used) ] // previous API panic'd implicitly
42
44
Self {
43
45
compressed_timestamped_data : zstd:: Encoder :: new ( vec ! [ ] , 1 )
44
46
. expect ( "failed to create zstd encoder" ) ,
@@ -72,7 +74,7 @@ impl TimestampedObservations {
72
74
}
73
75
74
76
pub fn into_iter ( self ) -> TimestampedObservationsIter {
75
- #[ allow( clippy:: unwrap_used) ]
77
+ #[ allow( clippy:: expect_used , clippy :: unwrap_used) ]
76
78
TimestampedObservationsIter {
77
79
decoder : zstd:: Decoder :: new ( Cursor :: new (
78
80
self . compressed_timestamped_data . finish ( ) . unwrap ( ) ,
Original file line number Diff line number Diff line change @@ -68,8 +68,8 @@ impl Compressor {
68
68
/// Creates a new compressor with the provided configuration.
69
69
///
70
70
/// - `size_hint`: beginning capacity for the output buffer. This is a
71
- /// hint for the starting size, and a different one may
72
- /// be used .
71
+ /// hint for the starting size, and the implementation may use something
72
+ /// different .
73
73
/// - `max_capacity`: the maximum size for the output buffer (hard limit).
74
74
/// - `compression_level`: see [`zstd::Encoder::new`] for the valid range.
75
75
pub fn try_new (
You can’t perform that action at this time.
0 commit comments