We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20e462d commit bc99406Copy full SHA for bc99406
quinn-proto/src/connection/assembler.rs
@@ -314,8 +314,9 @@ impl PartialEq for Buffer {
314
}
315
316
317
-#[derive(Debug)]
+#[derive(Debug, Default)]
318
enum State {
319
+ #[default]
320
Ordered,
321
Unordered {
322
/// The set of offsets that have been received from the peer, including portions not yet
@@ -330,12 +331,6 @@ impl State {
330
331
332
333
-impl Default for State {
334
- fn default() -> Self {
335
- Self::Ordered
336
- }
337
-}
338
-
339
/// Error indicating that an ordered read was performed on a stream after an unordered read
340
#[derive(Debug)]
341
pub struct IllegalOrderedRead;
0 commit comments