summaryrefslogtreecommitdiffstats
path: root/src/transport.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport.rs')
-rw-r--r--src/transport.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport.rs b/src/transport.rs
index 5a48f62..3ad3b9e 100644
--- a/src/transport.rs
+++ b/src/transport.rs
@@ -122,7 +122,7 @@ impl Transport {
message: Self::get_error_message(&message_body).unwrap_or_else(|| {
status
.canonical_reason()
- .unwrap_or_else(|| "unknown error code")
+ .unwrap_or("unknown error code")
.to_owned()
}),
})