Fix some new warnings

This commit is contained in:
Simon Sapin 2019-06-19 16:07:13 +02:00
parent 112f1ddeba
commit 1d38bc0419
65 changed files with 179 additions and 175 deletions

View file

@ -171,8 +171,8 @@ impl fmt::Display for PrefError {
impl std::error::Error for PrefError {}
pub struct Accessor<P, V> {
pub getter: Box<Fn(&P) -> V + Sync>,
pub setter: Box<Fn(&mut P, V) + Sync>,
pub getter: Box<dyn Fn(&P) -> V + Sync>,
pub setter: Box<dyn Fn(&mut P, V) + Sync>,
}
impl<P, V> Accessor<P, V> {