Bug 1574276 - Update traits in the bits library to specify dyn. r=agashlin

The `bits` library needs to be updated to prefix traits with `dyn` in order to compile with Rust 1.37 in which they've deprecated non-prefixed traits.

Differential Revision: https://phabricator.services.mozilla.com/D42187

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Eric Rahm 2019-08-16 17:22:15 +00:00
parent 3e2b89118e
commit f92163b353

View File

@ -32,10 +32,10 @@ use BitsJob;
/// If the callback returns a non-success `HRESULT`, the notification may pass to other BITS
/// mechanisms such as `IBackgroundCopyJob2::SetNotifyCmdLine`.
pub type TransferredCallback =
(Fn() -> Result<(), HRESULT>) + RefUnwindSafe + Send + Sync + 'static;
pub type ErrorCallback = (Fn() -> Result<(), HRESULT>) + RefUnwindSafe + Send + Sync + 'static;
dyn (Fn() -> Result<(), HRESULT>) + RefUnwindSafe + Send + Sync + 'static;
pub type ErrorCallback = dyn (Fn() -> Result<(), HRESULT>) + RefUnwindSafe + Send + Sync + 'static;
pub type ModificationCallback =
(Fn() -> Result<(), HRESULT>) + RefUnwindSafe + Send + Sync + 'static;
dyn (Fn() -> Result<(), HRESULT>) + RefUnwindSafe + Send + Sync + 'static;
#[repr(C)]
pub struct BackgroundCopyCallback {