declare wrapper types with macro

This commit is contained in:
Vinzenz Schroeter 2025-06-13 01:09:31 +02:00
parent f7cb5546b3
commit 14970c0ac4
9 changed files with 44 additions and 77 deletions

View file

@ -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(),
}