diff options
author | BlackDex <[email protected]> | 2021-05-08 17:46:31 +0200 |
---|---|---|
committer | BlackDex <[email protected]> | 2021-05-08 17:46:31 +0200 |
commit | 7cb19ef767142b773ab44a457940844589432a74 (patch) | |
tree | 3447f24ad226992e9d3fe77e096381da214fb267 /src/api/icons.rs | |
parent | b8010be26b4e2d489f55ba01622f9b6e1685b3b1 (diff) | |
download | vaultwarden-7cb19ef767142b773ab44a457940844589432a74.tar.gz vaultwarden-7cb19ef767142b773ab44a457940844589432a74.zip |
Updated branding, email and crates
- Updated branding for admin and emails
- Updated crates and some deprications
- Removed newline-converter because this is built-in into lettre
- Updated email templates to use a shared header and footer template
- Also trigger SMTP SSL When TLS is selected without SSL
Resolves #1641
Diffstat (limited to 'src/api/icons.rs')
-rw-r--r-- | src/api/icons.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/icons.rs b/src/api/icons.rs index b7674f3a..2b527285 100644 --- a/src/api/icons.rs +++ b/src/api/icons.rs @@ -389,7 +389,7 @@ fn get_favicons_node(node: &std::rc::Rc<markup5ever_rcdom::Node>, icons: &mut Ve if has_rel { if let Some(inner_href) = href { - if let Ok(full_href) = url.join(&inner_href).map(|h| h.into_string()) { + if let Ok(full_href) = url.join(&inner_href).map(String::from) { let priority = get_icon_priority(&full_href, sizes); icons.push(Icon::new(priority, full_href)); } @@ -499,7 +499,7 @@ fn get_icon_url(domain: &str) -> Result<IconUrlResult, Error> { referer = url.as_str().to_string(); // Add the default favicon.ico to the list with the domain the content responded from. - iconlist.push(Icon::new(35, url.join("/favicon.ico").unwrap().into_string())); + iconlist.push(Icon::new(35, String::from(url.join("/favicon.ico").unwrap()))); // 512KB should be more than enough for the HTML, though as we only really need // the HTML header, it could potentially be reduced even further |