Showing the changes to git-protocol/src (1 of 6 files). Show all
Unified · Split
| @@ -20,14 +20,14 @@ struct Transport<T> { · 19 unmodified lines | |||
| 20 | mod impls { | 20 | mod impls { |
| 21 | use git_transport::{ | 21 | use git_transport::{ |
| 22 | client, | 22 | client, |
| 23 | client::{Error, Identity, MessageKind, RequestWriter, SetServiceResponse, WriteMode}, | 23 | client::{Error, MessageKind, RequestWriter, SetServiceResponse, WriteMode}, |
| 24 | Protocol, Service, | 24 | Protocol, Service, |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | use crate::fetch::tests::arguments::Transport; | 27 | use crate::fetch::tests::arguments::Transport; |
| 28 | 28 | ||
| 29 | impl<T: client::TransportWithoutIO> client::TransportWithoutIO for Transport<T> { | 29 | impl<T: client::TransportWithoutIO> client::TransportWithoutIO for Transport<T> { |
| 30 | fn set_identity(&mut self, identity: Identity) -> Result<(), Error> { | 30 | fn set_identity(&mut self, identity: client::Account) -> Result<(), Error> { |
| 31 | self.inner.set_identity(identity) | 31 | self.inner.set_identity(identity) |
| 32 | } | 32 | } |
| 33 | 33 | ||
| @@ -64,13 +64,13 @@ mod impls { · 30 unmodified lines | |||
| 64 | use async_trait::async_trait; | 64 | use async_trait::async_trait; |
| 65 | use git_transport::{ | 65 | use git_transport::{ |
| 66 | client, | 66 | client, |
| 67 | client::{Error, Identity, MessageKind, RequestWriter, SetServiceResponse, WriteMode}, | 67 | client::{Error, MessageKind, RequestWriter, SetServiceResponse, WriteMode}, |
| 68 | Protocol, Service, | 68 | Protocol, Service, |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | use crate::fetch::tests::arguments::Transport; | 71 | use crate::fetch::tests::arguments::Transport; |
| 72 | impl<T: client::TransportWithoutIO + Send> client::TransportWithoutIO for Transport<T> { | 72 | impl<T: client::TransportWithoutIO + Send> client::TransportWithoutIO for Transport<T> { |
| 73 | fn set_identity(&mut self, identity: Identity) -> Result<(), Error> { | 73 | fn set_identity(&mut self, identity: client::Account) -> Result<(), Error> { |
| 74 | self.inner.set_identity(identity) | 74 | self.inner.set_identity(identity) |
| 75 | } | 75 | } |
| 76 | 76 | ||