declare wrapper types with macro
This commit is contained in:
parent
f7cb5546b3
commit
14970c0ac4
9 changed files with 44 additions and 77 deletions
|
@ -25,7 +25,7 @@ impl Connection {
|
|||
}
|
||||
|
||||
pub fn send(&self, command: Arc<Command>) -> Result<(), ServicePointError> {
|
||||
self.actual.send_command(command.actual.clone()).ok_or_else(|| {
|
||||
self.actual.send_command(command.actual.read().unwrap().clone()).ok_or_else(|| {
|
||||
ServicePointError::IoError {
|
||||
error: "send failed".to_string(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue