aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.rs')
-rw-r--r--src/common.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.rs b/src/common.rs
index 3d31263..2f0f942 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -1,3 +1,4 @@
+use std::fmt::Display;
use std::fs::{metadata, File};
use std::io::{self};
use std::path::PathBuf;
@@ -84,6 +85,13 @@ pub enum WriteDurability {
FlushSync,
}
+impl Display for WriteDurability {
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
+ write!(f, "{:?}", self)?;
+ Ok(())
+ }
+}
+
#[derive(Debug, Clone, Ord, PartialOrd, Eq, PartialEq, Hash)]
pub enum IndexableValue {
Int(i64),