Fix rustc warnings

New warnings were introduced with rustc 1.29.0

podcasts-data/src/lib.rs: this one can be removed once diesel is
upgraded.
https://github.com/diesel-rs/diesel/issues/1785#issuecomment-422577018

podcasts-gtk/src/i18n.rs: This is just a deprication warning
This commit is contained in:
Jordan Petridis 2018-09-22 04:37:46 +03:00
parent 565d1d0388
commit de1c8485ae
No known key found for this signature in database
GPG Key ID: E8523968931763BE
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@
elided_lifetime_in_paths, elided_lifetime_in_paths,
missing_copy_implementations missing_copy_implementations
)] )]
#![allow(proc_macro_derive_resolution_fallback)]
#![deny(warnings)] #![deny(warnings)]
//! FIXME: Docs //! FIXME: Docs

View File

@ -21,7 +21,7 @@ fn kreplace(input: String, kwargs: &[(&str, &str)]) -> String {
for (k, v) in kwargs { for (k, v) in kwargs {
if let Ok(re) = Regex::new(&format!("\\{{{}\\}}", k)) { if let Ok(re) = Regex::new(&format!("\\{{{}\\}}", k)) {
s = re s = re
.replace_all(&s, |_: &Captures| v.to_string().clone()) .replace_all(&s, |_: &Captures<'_>| v.to_string().clone())
.to_string(); .to_string();
} }
} }