about summary refs log tree commit diff stats
path: root/crates/core/src/hive/mod.rs
diff options
context:
space:
mode:
authorsuperwhiskers <[email protected]>2025-09-14 08:06:27 -0500
committersuperwhiskers <[email protected]>2025-09-15 10:55:10 -0500
commit50192cbe91da765d3c09cf8e12f328b721d3cb46 (patch)
tree345e69ef1141c26774677982fe5eaba875dbbbe0 /crates/core/src/hive/mod.rs
parent83751efd734999fc11316a66317250ca53e76726 (diff)
downloadazimuth-canon.tar.gz
azimuth-canon.tar.bz2
azimuth-canon.zip
add a `Display` implementation to `Expression` HEAD canon
this change adds a string formatter for `Expression`s using the `Display`
trait. additionally, it standardizes the way `Display` implementations
are written and makes some minor adjustments to the parameters used for
the proptest-based test for `Expression`.

Change-Id: I6a6a6964cd5c04e95341a499dcd73297ca2f514a
Diffstat (limited to 'crates/core/src/hive/mod.rs')
-rw-r--r--crates/core/src/hive/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/core/src/hive/mod.rs b/crates/core/src/hive/mod.rs
index ad14725..3f83099 100644
--- a/crates/core/src/hive/mod.rs
+++ b/crates/core/src/hive/mod.rs
@@ -297,8 +297,8 @@ pub enum Error {
 
 #[cfg(feature = "core-fmt")]
 impl fmt::Display for Error {
-    fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
-        fmt.write_str("memory allocation failed")?;
+    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+        f.write_str("memory allocation failed")?;
         let reason = match self {
             Error::CapacityOverflow => {
                 " because the computed capacity exceeded the hive's maximum"
@@ -307,7 +307,7 @@ impl fmt::Display for Error {
                 " because the memory allocator returned an error"
             }
         };
-        fmt.write_str(reason)
+        f.write_str(reason)
     }
 }