Removed mut from runtime
This commit is contained in:
@@ -8,7 +8,6 @@ readme = "README"
|
|||||||
homepage = "gemini://80h.dev"
|
homepage = "gemini://80h.dev"
|
||||||
repository = "https://git.sr.ht/~int80h/gemserv"
|
repository = "https://git.sr.ht/~int80h/gemserv"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
license-file = "LICENSE"
|
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
|||||||
@@ -442,7 +442,7 @@ fn main() -> io::Result<()> {
|
|||||||
.next()
|
.next()
|
||||||
.ok_or_else(|| io::Error::from(io::ErrorKind::AddrNotAvailable))?;
|
.ok_or_else(|| io::Error::from(io::ErrorKind::AddrNotAvailable))?;
|
||||||
|
|
||||||
let mut runtime = runtime::Builder::new_multi_thread()
|
let runtime = runtime::Builder::new_multi_thread()
|
||||||
// .threaded_scheduler()
|
// .threaded_scheduler()
|
||||||
.enable_io()
|
.enable_io()
|
||||||
.enable_time()
|
.enable_time()
|
||||||
|
|||||||
Reference in New Issue
Block a user