don't use strings for paths
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
use herodb::{server::Server, options::DBOption};
|
||||
use std::path::PathBuf;
|
||||
use std::time::Duration;
|
||||
use tokio::io::{AsyncReadExt, AsyncWriteExt};
|
||||
use tokio::net::TcpStream;
|
||||
@@ -13,7 +14,7 @@ async fn debug_hset_return_value() {
|
||||
std::fs::create_dir_all(&test_dir).unwrap();
|
||||
|
||||
let option = DBOption {
|
||||
dir: test_dir.to_string(),
|
||||
dir: PathBuf::from(test_dir),
|
||||
port: 16390,
|
||||
debug: false,
|
||||
encrypt: false,
|
||||
|
Reference in New Issue
Block a user