We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39625cc commit 69f4590Copy full SHA for 69f4590
crates/backend/src/lib.rs
@@ -98,6 +98,23 @@ impl fmt::Display for BackendTarget {
98
}
99
100
101
+impl fmt::Debug for BackendTarget {
102
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
103
+ write!(f, "{}", {
104
+ match self {
105
+ Self::FileSystem(paths) => format!(
106
+ "file:{}",
107
+ paths.documents_dir().to_string_lossy()
108
+ ),
109
+ Self::Database(paths, _) => format!(
110
+ "sqlite:{}",
111
112
113
+ }
114
+ })
115
116
+}
117
+
118
impl BackendTarget {
119
/// Infer and initialize a new backend target.
120
///
0 commit comments