remove anyhow
This commit is contained in:
1
Cargo.lock
generated
1
Cargo.lock
generated
@@ -1944,7 +1944,6 @@ checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
|
|||||||
name = "openworm"
|
name = "openworm"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
|
||||||
"arboard",
|
"arboard",
|
||||||
"bincode",
|
"bincode",
|
||||||
"directories-next",
|
"directories-next",
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ edition = "2024"
|
|||||||
default-run = "client"
|
default-run = "client"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anyhow = "1.0.100"
|
|
||||||
arboard = { version = "3.6.1", features = ["wayland-data-control"] }
|
arboard = { version = "3.6.1", features = ["wayland-data-control"] }
|
||||||
directories-next = "2.0.0"
|
directories-next = "2.0.0"
|
||||||
pollster = "0.4.0"
|
pollster = "0.4.0"
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ impl NetSender {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// async fn connection_cert(addr: SocketAddr) -> anyhow::Result<Connection> {
|
// async fn connection_cert(addr: SocketAddr) -> NetResult<Connection> {
|
||||||
// let dirs = directories_next::ProjectDirs::from("", "", "openworm").unwrap();
|
// let dirs = directories_next::ProjectDirs::from("", "", "openworm").unwrap();
|
||||||
// let mut roots = quinn::rustls::RootCertStore::empty();
|
// let mut roots = quinn::rustls::RootCertStore::empty();
|
||||||
// match fs::read(dirs.data_local_dir().join("cert.der")) {
|
// match fs::read(dirs.data_local_dir().join("cert.der")) {
|
||||||
@@ -69,7 +69,7 @@ impl NetSender {
|
|||||||
// endpoint
|
// endpoint
|
||||||
// .connect(addr, SERVER_NAME)?
|
// .connect(addr, SERVER_NAME)?
|
||||||
// .await
|
// .await
|
||||||
// .map_err(|e| anyhow::anyhow!("failed to connect: {}", e))
|
// .map_err(|e| format!("failed to connect: {}", e))
|
||||||
// }
|
// }
|
||||||
|
|
||||||
async fn connection_no_cert(addr: SocketAddr) -> NetResult<Connection> {
|
async fn connection_no_cert(addr: SocketAddr) -> NetResult<Connection> {
|
||||||
|
|||||||
Reference in New Issue
Block a user