Skip to content

Commit e719558

Browse files
remove warnings
1 parent 62091a0 commit e719558

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/api.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use anyhow::Context;
66
use log::info;
77
use poem::{
88
http::StatusCode,
9-
listener::{self, TcpListener, UnixListener},
9+
listener::{TcpListener, UnixListener},
1010
Route, Server
1111
};
1212
use poem_openapi::{
@@ -19,8 +19,7 @@ use poem_openapi::{
1919
use serde::Deserialize;
2020
use std::{
2121
collections::HashMap,
22-
fs::FileType,
23-
os::{self, unix::fs::FileTypeExt},
22+
os::unix::fs::FileTypeExt,
2423
path::Path,
2524
sync::{atomic::Ordering, Arc}
2625
};

0 commit comments

Comments
 (0)