Skip to content

Commit

Permalink
Add notes about replacing transmute
Browse files Browse the repository at this point in the history
  • Loading branch information
JDSeiler committed Jul 12, 2023
1 parent a77fafd commit 7e7dab4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/schemas/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ use crate::tree::document::Document;
use std::ffi::CString;
use std::os::raw::c_char;

/*
TODO:
- Can we replace the usage of transmute with Box::into_row and Box::from_raw?
*/

/// Wrapper on xmlSchemaParserCtxt
pub struct SchemaParserContext {
inner: *mut bindings::_xmlSchemaParserCtxt,
Expand Down
5 changes: 5 additions & 0 deletions src/schemas/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ use crate::error::StructuredError;
use std::ffi::CString;
use std::os::raw::c_char;

/*
TODO:
- Can we replace the usage of transmute with Box::into_row and Box::from_raw?
*/

/// Wrapper on xmlSchemaValidCtxt
pub struct SchemaValidationContext {
ctxt: *mut bindings::_xmlSchemaValidCtxt,
Expand Down

0 comments on commit 7e7dab4

Please sign in to comment.