aboutsummaryrefslogtreecommitdiff
path: root/src/dav/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/dav/error.rs')
-rw-r--r--src/dav/error.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dav/error.rs b/src/dav/error.rs
index 5bd8ed3..b04d2ac 100644
--- a/src/dav/error.rs
+++ b/src/dav/error.rs
@@ -6,6 +6,7 @@ pub enum ParsingError {
NamespacePrefixAlreadyUsed,
WrongToken,
TagNotFound,
+ Utf8Error(std::str::Utf8Error),
QuickXml(quick_xml::Error),
Eof
}
@@ -19,3 +20,8 @@ impl From<quick_xml::Error> for ParsingError {
Self::QuickXml(value)
}
}
+impl From<std::str::Utf8Error> for ParsingError {
+ fn from(value: std::str::Utf8Error) -> Self {
+ Self::Utf8Error(value)
+ }
+}