mirror of
https://github.com/servo/servo.git
synced 2025-08-13 09:25:32 +01:00
Fix some new warnings
This commit is contained in:
parent
112f1ddeba
commit
1d38bc0419
65 changed files with 179 additions and 175 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue