aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven-Hendrik Haase <svenstaro@gmail.com>2021-10-26 00:41:27 +0000
committerSven-Hendrik Haase <svenstaro@gmail.com>2021-10-26 00:41:27 +0000
commit8d27523cdf335872a7d26a97b95fa69066ced9c9 (patch)
treead462ca4564b94f88544310ebcb9403727272672
parentAdd test for --spa (diff)
downloadminiserve-8d27523cdf335872a7d26a97b95fa69066ced9c9.tar.gz
miniserve-8d27523cdf335872a7d26a97b95fa69066ced9c9.zip
Upgrade to Rust 2021 edition
-rw-r--r--Cargo.toml3
-rw-r--r--src/renderer.rs8
2 files changed, 5 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c81fdbe..e4d3f2e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -8,8 +8,7 @@ license = "MIT"
readme = "README.md"
keywords = ["serve", "http-server", "static-files", "http", "server"]
categories = ["command-line-utilities", "network-programming", "web-programming::http-server"]
-edition = "2018"
-resolver = "2"
+edition = "2021"
[profile.release]
lto = true
diff --git a/src/renderer.rs b/src/renderer.rs
index 5a6d303..ba2c4e6 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -44,7 +44,7 @@ pub fn page(
html {
(page_header(&title_path, conf.file_upload, &conf.favicon_route, &conf.css_route))
- body#drop-container
+ body #drop-container
.(format!("default_theme_{}", conf.default_color_scheme))
.(format!("default_theme_dark_{}", conf.default_color_scheme_dark)) {
@@ -81,7 +81,7 @@ pub fn page(
}
(color_scheme_selector(conf.show_qrcode))
div.container {
- span#top { }
+ span #top { }
h1.title dir="ltr" {
@for el in breadcrumbs {
@if el.link == "." {
@@ -110,7 +110,7 @@ pub fn page(
form id="file_submit" action=(upload_action) method="POST" enctype="multipart/form-data" {
p { "Select a file to upload or drag it anywhere into the window" }
div {
- input#file-input type="file" name="file_to_upload" required="" multiple {}
+ input #file-input type="file" name="file_to_upload" required="" multiple {}
button type="submit" { "Upload file" }
}
}
@@ -259,7 +259,7 @@ fn color_scheme_selector(show_qrcode: bool) -> Markup {
"QR code"
}
div.qrcode {
- img#qrcode alt="QR code" title="QR code of this page";
+ img #qrcode alt="QR code" title="QR code of this page";
}
}
}