io::Error::other stabilized
parent
9b6445ec84
commit
6a31c89f53
|
@ -40,14 +40,6 @@ use state::{AppState, UploadRecord};
|
||||||
use crate::state::AsyncRemoveRecord;
|
use crate::state::AsyncRemoveRecord;
|
||||||
use crate::views::{DownloadLinkPage, HtmxPage, LinkView, Welcome};
|
use crate::views::{DownloadLinkPage, HtmxPage, LinkView, Welcome};
|
||||||
|
|
||||||
pub mod error {
|
|
||||||
use std::io::{Error, ErrorKind};
|
|
||||||
|
|
||||||
pub fn io_other(s: &str) -> Error {
|
|
||||||
Error::new(ErrorKind::Other, s)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> io::Result<()> {
|
async fn main() -> io::Result<()> {
|
||||||
logging::init_tracing();
|
logging::init_tracing();
|
||||||
|
|
Loading…
Reference in New Issue