@@ -41,7 +41,7 @@ enum ProgressState {
4141/// * `username_from_url` - the username that was embedded in the url, or `None`
4242/// if it was not included.
4343/// * `allowed_types` - a bitmask stating which cred types are ok to return.
44- pub type Credentials < ' a > = FnMut ( & str , Option < & str > , CredentialType )
44+ pub type Credentials < ' a > = dyn FnMut ( & str , Option < & str > , CredentialType )
4545 -> Result < Cred , Error > + ' a ;
4646
4747/// Callback to be invoked while a transfer is in progress.
@@ -51,15 +51,15 @@ pub type Credentials<'a> = FnMut(&str, Option<&str>, CredentialType)
5151/// continue. A return value of `false` will cancel the transfer.
5252///
5353/// * `progress` - the progress being made so far.
54- pub type TransferProgress < ' a > = FnMut ( Progress ) -> bool + ' a ;
54+ pub type TransferProgress < ' a > = dyn FnMut ( Progress ) -> bool + ' a ;
5555
5656/// Callback for receiving messages delivered by the transport.
5757///
5858/// The return value indicates whether the network operation should continue.
59- pub type TransportMessage < ' a > = FnMut ( & [ u8 ] ) -> bool + ' a ;
59+ pub type TransportMessage < ' a > = dyn FnMut ( & [ u8 ] ) -> bool + ' a ;
6060
6161/// Callback for whenever a reference is updated locally.
62- pub type UpdateTips < ' a > = FnMut ( & str , Oid , Oid ) -> bool + ' a ;
62+ pub type UpdateTips < ' a > = dyn FnMut ( & str , Oid , Oid ) -> bool + ' a ;
6363
6464/// Callback for a custom certificate check.
6565///
@@ -68,14 +68,14 @@ pub type UpdateTips<'a> = FnMut(&str, Oid, Oid) -> bool + 'a;
6868///
6969/// The second argument is the hostname for the connection is passed as the last
7070/// argument.
71- pub type CertificateCheck < ' a > = FnMut ( & Cert , & str ) -> bool + ' a ;
71+ pub type CertificateCheck < ' a > = dyn FnMut ( & Cert , & str ) -> bool + ' a ;
7272
7373/// Callback for each updated reference on push.
7474///
7575/// The first argument here is the `refname` of the reference, and the second is
7676/// the status message sent by a server. If the status is `Some` then the update
7777/// was rejected by the remote server with a reason why.
78- pub type PushUpdateReference < ' a > = FnMut ( & str , Option < & str > ) -> Result < ( ) , Error > + ' a ;
78+ pub type PushUpdateReference < ' a > = dyn FnMut ( & str , Option < & str > ) -> Result < ( ) , Error > + ' a ;
7979
8080impl < ' a > Default for RemoteCallbacks < ' a > {
8181 fn default ( ) -> Self {
0 commit comments