diff --git a/proxmox-api/src/const_regex.rs b/proxmox-api/src/const_regex.rs index 8541f660..32d810c5 100644 --- a/proxmox-api/src/const_regex.rs +++ b/proxmox-api/src/const_regex.rs @@ -19,6 +19,14 @@ impl fmt::Debug for ConstRegexPattern { } } +impl std::ops::Deref for ConstRegexPattern { + type Target = regex::Regex; + + fn deref(&self) -> &Self::Target { + (self.regex_obj)() + } +} + /// Macro to generate a ConstRegexPattern /// /// ```