Disable icon downloads, accept optional query after icon href, format and clippy fixes

This commit is contained in:
Daniel García
2019-01-28 23:58:32 +01:00
parent bef1183c49
commit c0e350b734
4 changed files with 44 additions and 40 deletions

View File

@@ -56,6 +56,7 @@ make_config! {
extended_logging: bool,
log_file: Option<String>,
disable_icon_download: bool,
signups_allowed: bool,
invitations_allowed: bool,
admin_token: Option<String>,
@@ -166,6 +167,7 @@ impl Config {
extended_logging: get_env_or("EXTENDED_LOGGING", true),
log_file: get_env("LOG_FILE"),
disable_icon_download: get_env_or("DISABLE_ICON_DOWNLOAD", false),
signups_allowed: get_env_or("SIGNUPS_ALLOWED", true),
admin_token: get_env("ADMIN_TOKEN"),
invitations_allowed: get_env_or("INVITATIONS_ALLOWED", true),