diff options
| author | Fuwn <[email protected]> | 2022-06-01 01:51:06 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-06-01 01:51:06 +0000 |
| commit | c1110da42a127106af10f0fb13207d8ea39ed961 (patch) | |
| tree | 20d832570c1c187326b71183a818771f7ed57209 | |
| parent | docs(lib.rs): add top-level readme (diff) | |
| download | germ-c1110da42a127106af10f0fb13207d8ea39ed961.tar.xz germ-c1110da42a127106af10f0fb13207d8ea39ed961.zip | |
feat(status): impl display for status
| -rw-r--r-- | src/request/status.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/request/status.rs b/src/request/status.rs index 8a18ce7..c8c3ae4 100644 --- a/src/request/status.rs +++ b/src/request/status.rs @@ -16,6 +16,9 @@ // Copyright (C) 2022-2022 Fuwn <[email protected]> // SPDX-License-Identifier: GPL-3.0-only +use std::fmt; +use std::fmt::Formatter; + /// Simple Gemini status reporting /// /// # Examples @@ -101,3 +104,8 @@ impl From<i32> for Status { } } } +impl fmt::Display for Status { + fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { + write!(f, "{:?}", self) + } +} |