Skip to content
Snippets Groups Projects
Unverified Commit 6e20f818 authored by Louis's avatar Louis :fire:
Browse files

Fix default types and missing colon

parent 432a27e8
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ Web Server Options:
-c=<path>, --config=<path> Path to the .swerve config file
-t=<num>, --threads=<num> Number of worker threads to use for serving files; defaults to 32
Data Handling Options
Data Handling Options:
-u, --upload Support file uploads to '/upload'
-U=<path>, --upload-path=<path> Set the url path that will accept file uploads. Implies 'upload' flag if not present
......@@ -60,11 +60,11 @@ impl Args {
impl Default for Args {
fn default() -> Self {
Args {
flag_dir: Some(""),
flag_dir: Some(String::from("")),
flag_port: Some(8000),
flag_config: None,
flag_threads: Some(32),
flag_address: Some("localhost"),
flag_address: Some(String::from("localhost")),
flag_help: false,
flag_quiet: false,
flag_no_index: false,
......
......@@ -3,9 +3,8 @@ use std::convert::AsRef;
use std::io::prelude::*;
use std::io;
use std::fs::File;
use std::io::BufReader;
use std::default::Default;
use serde::{Deserialize, Deserializer, de::{self, Error}};
use serde::{Deserialize, Deserializer, de};
use std::fmt;
use serde_yaml as yaml;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment