diff options
author | defanor <defanor@uberspace.net> | 2023-11-02 15:47:16 +0300 |
---|---|---|
committer | defanor <defanor@uberspace.net> | 2023-11-02 15:47:16 +0300 |
commit | cafe83109a65b6bfd5bc0f3fd642e0833f5ebc78 (patch) | |
tree | 32fdfa39afc5301445db61081d3508c3ebc389eb /src/rexmpp_xml_parser.rs | |
parent | 2a5c3db244708d528f357adeb7e6ec947161fbad (diff) |
Use Rust enums for C tagged unions
Used to manually implement tagged unions in Rust as well, but the C
representation of Rust enums with fields is supposed to match those.
Diffstat (limited to 'src/rexmpp_xml_parser.rs')
-rw-r--r-- | src/rexmpp_xml_parser.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rexmpp_xml_parser.rs b/src/rexmpp_xml_parser.rs index 3c393de..037c2f2 100644 --- a/src/rexmpp_xml_parser.rs +++ b/src/rexmpp_xml_parser.rs @@ -7,7 +7,6 @@ use std::ffi::{CStr, CString}; use std::slice; use rxml::{FeedParser, Error, ResolvedEvent, XmlVersion, EventRead, CData}; use std::io; -use std::sync::Arc; use super::{rexmpp_xml}; type RexmppXMLParserElementStart = unsafe extern "C" |