mirror of
https://github.com/ntex-rs/ntex.git
synced 2025-04-05 22:07:38 +03:00
Switch to 2021 edition (#172)
This commit is contained in:
parent
0c61a78d60
commit
29e04cf478
53 changed files with 54 additions and 81 deletions
ntex-bytes
|
@ -9,7 +9,7 @@ repository = "https://github.com/ntex-rs"
|
|||
readme = "README.md"
|
||||
keywords = ["buffers", "zero-copy", "io"]
|
||||
categories = ["network-programming", "data-structures"]
|
||||
edition = "2018"
|
||||
edition = "2021"
|
||||
|
||||
[features]
|
||||
default = []
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
use std::borrow::{Borrow, BorrowMut};
|
||||
use std::iter::{FromIterator, Iterator};
|
||||
use std::ops::{Deref, DerefMut, RangeBounds};
|
||||
use std::sync::atomic::Ordering::{Acquire, Relaxed, Release};
|
||||
use std::sync::atomic::{self, AtomicUsize};
|
||||
|
@ -4049,7 +4048,7 @@ fn abort() {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use std::{collections::HashMap, convert::TryFrom};
|
||||
use std::collections::HashMap;
|
||||
|
||||
use super::*;
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
//! A UTF-8 encoded read-only string using Bytes as storage.
|
||||
use std::{borrow, convert::TryFrom, fmt, hash, ops, slice, str};
|
||||
use std::{borrow, fmt, hash, ops, slice, str};
|
||||
|
||||
use crate::{Bytes, BytesMut, BytesVec};
|
||||
|
||||
|
|
|
@ -96,7 +96,6 @@ fn fmt() {
|
|||
#[test]
|
||||
fn fmt_write() {
|
||||
use std::fmt::Write;
|
||||
use std::iter::FromIterator;
|
||||
let s = String::from_iter((0..10).map(|_| "abcdefg"));
|
||||
|
||||
let mut a = BytesMut::with_capacity(64);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue