Skip to content

Commit

Permalink
Fix rustc warnings
Browse files Browse the repository at this point in the history
New warnings were introduced with rustc 1.29.0

podcasts-data/src/lib.rs: this one can be removed once diesel is
upgraded.
diesel-rs/diesel#1785 (comment)

podcasts-gtk/src/i18n.rs: This is just a deprication warning
  • Loading branch information
alatiera committed Sep 22, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 565d1d0 commit de1c848
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions podcasts-data/src/lib.rs
Original file line number Diff line number Diff line change
@@ -45,6 +45,7 @@
elided_lifetime_in_paths,
missing_copy_implementations
)]
#![allow(proc_macro_derive_resolution_fallback)]
#![deny(warnings)]

//! FIXME: Docs
2 changes: 1 addition & 1 deletion podcasts-gtk/src/i18n.rs
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ fn kreplace(input: String, kwargs: &[(&str, &str)]) -> String {
for (k, v) in kwargs {
if let Ok(re) = Regex::new(&format!("\\{{{}\\}}", k)) {
s = re
.replace_all(&s, |_: &Captures| v.to_string().clone())
.replace_all(&s, |_: &Captures<'_>| v.to_string().clone())
.to_string();
}
}

0 comments on commit de1c848

Please sign in to comment.