aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-05-09 20:38:46 +0200
committerHampusM <hampus@hampusmat.com>2023-05-11 21:05:53 +0200
commit8818a94ad79ebdebdf4c7819bd42e363c63bd630 (patch)
tree0a757ff271bf9d4d15be1a3a947f58b613961cbf /src/lib.rs
parente762babd9e69400ccd178ba8946168640093eb63 (diff)
feat: add optional deserializer generics static bounds
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index e5086bc..9cf3716 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,6 +1,6 @@
//! XML is awful.
#![deny(clippy::all, clippy::pedantic, unsafe_code, missing_docs)]
-use crate::deserializer::{Deserializer, Error as DeserializerError};
+use crate::deserializer::{Deserializer, Error as DeserializerError, MaybeStatic};
use crate::tagged::TagStart;
pub mod attribute;
@@ -8,9 +8,10 @@ pub mod deserializer;
pub mod tagged;
mod event;
+mod util;
/// Trait implemented by types that want to be deserializable from tagged XML elements.
-pub trait DeserializeTagged: Sized
+pub trait DeserializeTagged: Sized + MaybeStatic
{
/// Error type.
type Error: std::error::Error + Send + Sync + 'static;