Skip to content

Commit 188b041

Browse files
committed
update to 2021 edition + 2024 style_edition
1 parent b58396d commit 188b041

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "buf-list"
33
version = "1.0.3"
4-
edition = "2018"
4+
edition = "2021"
55
description = "A list of buffers that implements the bytes::Buf trait"
66
categories = ["network-programming", "data-structures"]
77
keywords = ["buffers", "zero-copy", "io"]

rustfmt.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
style_edition = "2024"

src/cursor/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mod tests;
88
#[cfg(feature = "tokio1")]
99
mod tokio_imp;
1010

11-
use crate::{errors::ReadExactError, BufList};
11+
use crate::{BufList, errors::ReadExactError};
1212
use bytes::Bytes;
1313
use std::{
1414
cmp::Ordering,

src/cursor/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
// Property-based tests for Cursor.
55

66
use crate::BufList;
7-
use anyhow::{bail, ensure, Context, Result};
7+
use anyhow::{Context, Result, bail, ensure};
88
use bytes::{Buf, Bytes};
99
use proptest::prelude::*;
1010
use std::{
1111
fmt,
1212
io::{self, BufRead, IoSliceMut, Read, Seek, SeekFrom},
1313
};
14-
use test_strategy::{proptest, Arbitrary};
14+
use test_strategy::{Arbitrary, proptest};
1515

1616
/// Assert that buf_list's cursor behaves identically to std::io::Cursor.
1717
#[proptest]

0 commit comments

Comments
 (0)