mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Fix some new warnings
This commit is contained in:
parent
112f1ddeba
commit
1d38bc0419
65 changed files with 179 additions and 175 deletions
|
@ -463,17 +463,17 @@ pub trait BackgroundHangMonitorRegister: BackgroundHangMonitorClone + Send {
|
|||
component: MonitoredComponentId,
|
||||
transient_hang_timeout: Duration,
|
||||
permanent_hang_timeout: Duration,
|
||||
) -> Box<BackgroundHangMonitor>;
|
||||
) -> Box<dyn BackgroundHangMonitor>;
|
||||
}
|
||||
|
||||
impl Clone for Box<BackgroundHangMonitorRegister> {
|
||||
fn clone(&self) -> Box<BackgroundHangMonitorRegister> {
|
||||
impl Clone for Box<dyn BackgroundHangMonitorRegister> {
|
||||
fn clone(&self) -> Box<dyn BackgroundHangMonitorRegister> {
|
||||
self.clone_box()
|
||||
}
|
||||
}
|
||||
|
||||
pub trait BackgroundHangMonitorClone {
|
||||
fn clone_box(&self) -> Box<BackgroundHangMonitorRegister>;
|
||||
fn clone_box(&self) -> Box<dyn BackgroundHangMonitorRegister>;
|
||||
}
|
||||
|
||||
/// Proxy methods to communicate with the background hang monitor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue