tweak bpaf usage message

As discussed here: https://github.com/pacak/bpaf/discussions/165#discussioncomment-4967176

I also snuck in a conversion from `lazy_static` to `once_cell`, rather
than adding another usage of the former.
This commit is contained in:
Scott Lamb
2023-02-13 21:19:55 -08:00
parent 015dfef9c9
commit 2b27797f42
17 changed files with 120 additions and 85 deletions

View File

@@ -728,7 +728,6 @@ mod bench {
use db::testutil::{self, TestDb};
use hyper;
use lazy_static::lazy_static;
use std::sync::Arc;
use uuid::Uuid;
@@ -786,9 +785,7 @@ mod bench {
}
}
lazy_static! {
static ref SERVER: Server = Server::new();
}
static SERVER: once_cell::sync::Lazy<Server> = once_cell::sync::Lazy::new(Server::new);
#[bench]
fn serve_stream_recordings(b: &mut test::Bencher) {