File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ futures = "0.3.15"
33
33
ouroboros = " 0.9"
34
34
stop-token = " 0.2"
35
35
byte-pool = " 0.2.2"
36
- lazy_static = " 1.4 .0"
36
+ once_cell = " 1.8 .0"
37
37
log = " 0.4.8"
38
38
thiserror = " 1.0.9"
39
39
Original file line number Diff line number Diff line change @@ -8,13 +8,12 @@ use async_std::sync::Arc;
8
8
use byte_pool:: { Block , BytePool } ;
9
9
use futures:: task:: { Context , Poll } ;
10
10
use nom:: Needed ;
11
+ use once_cell:: sync:: Lazy ;
11
12
12
13
use crate :: types:: { Request , ResponseData } ;
13
14
14
- lazy_static:: lazy_static! {
15
- /// The global buffer pool we use for storing incoming data.
16
- pub ( crate ) static ref POOL : Arc <BytePool > = Arc :: new( BytePool :: new( ) ) ;
17
- }
15
+ /// The global buffer pool we use for storing incoming data.
16
+ pub ( crate ) static POOL : Lazy < Arc < BytePool > > = Lazy :: new ( || Arc :: new ( BytePool :: new ( ) ) ) ;
18
17
19
18
/// Wraps a stream, and parses incoming data as imap server messages. Writes outgoing data
20
19
/// as imap client messages.
You can’t perform that action at this time.
0 commit comments