diff --git a/Cargo.toml b/Cargo.toml index 88ba3ff..2fc648e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pukram-server" version = "0.1.0" -edition = "2021" +edition = "2024" [dependencies] percent-encoding = "2.3" diff --git a/src/main.rs b/src/main.rs index 3742742..5fa5e3d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,8 @@ use std::{ - collections::{hash_map::Entry, HashMap}, + collections::{HashMap, hash_map::Entry}, env, fs::File, - io::{prelude::*, BufReader, Error, ErrorKind, Result}, + io::{BufReader, Error, ErrorKind, Result, prelude::*}, net::{TcpListener, TcpStream}, path::{Path, PathBuf}, sync::{Arc, Mutex}, @@ -11,12 +11,12 @@ use std::{ }; use data_stream::{ - collections::SizeSettings, default_settings::PortableSettings, from_stream, to_stream, - FromStream, ToStream, + FromStream, ToStream, collections::SizeSettings, default_settings::PortableSettings, + from_stream, to_stream, }; use maud::html; use percent_encoding::percent_decode_str; -use pukram2html::{convert, convert_extended, convert_subheader, Settings}; +use pukram2html::{Settings, convert, convert_extended, convert_subheader}; use threadpool::ThreadPool; mod request;