Showing the changes to git-protocol/src (1 of 3 files). Show all
Unified · Split
| @@ -1,12 +1,24 @@ | ||
| 1 | 1 | use crate::credentials; |
| 2 | 2 | use git_transport::client; |
| 3 | +use quick_error::quick_error; | |
| 4 | + | |
| 5 | +quick_error! { | |
| 6 | + #[derive(Debug)] | |
| 7 | + pub enum Error { | |
| 8 | + Credentials(err: credentials::Error) { | |
| 9 | + display("Failed to obtain, approve or reject credentials") | |
| 10 | + from() | |
| 11 | + source(err) | |
| 12 | + } | |
| 13 | + } | |
| 14 | +} | |
| 3 | 15 | |
| 4 | 16 | pub trait Delegate {} |
| 5 | 17 | |
| 6 | 18 | pub fn fetch( |
| 7 | 19 | _transport: impl client::Transport, |
| 8 | 20 | _delegate: impl Delegate, |
| 9 | − _authenticate: impl FnMut(credentials::Action, &str) -> credentials::Result, | |
| 10 | −) { | |
| 21 | + _authenticate: impl FnMut(credentials::Action) -> credentials::Result, | |
| 22 | +) -> Result<(), Error> { | |
| 11 | 23 | unimplemented!("fetch") |
| 12 | 24 | } |