File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7141,7 +7141,7 @@ pub struct _xmlSAXLocator {
71417141/// the application can either:
71427142/// - override this resolveEntity() callback in the SAX block
71437143/// - or better use the xmlSetExternalEntityLoader() function to
7144- /// set up it's own entity resolution routine
7144+ /// set up its own entity resolution routine
71457145///
71467146/// Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
71477147pub type resolveEntitySAXFunc = ::std::option::Option<
@@ -14206,8 +14206,10 @@ pub type xmlXPathFuncLookupFunc = ::std::option::Option<
1420614206/// - a set of variable bindings
1420714207/// - a function library
1420814208/// - the set of namespace declarations in scope for the expression
14209+ ///
1420914210/// Following the switch to hash tables, this need to be trimmed up at
1421014211/// the next binary incompatible release.
14212+ ///
1421114213/// The node may be modified when the context is passed to libxml2
1421214214/// for an XPath evaluation so you may need to initialize it again
1421314215/// before the next call.
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ pub struct ParserOptions<'a> {
7272 pub encoding : Option < & ' a str > ,
7373}
7474
75- impl < ' a > ParserOptions < ' a > {
75+ impl ParserOptions < ' _ > {
7676 pub ( crate ) fn to_flags ( & self , format : & ParseFormat ) -> i32 {
7777 macro_rules! to_option_flag {
7878 (
@@ -103,7 +103,7 @@ impl<'a> ParserOptions<'a> {
103103 }
104104}
105105
106- impl < ' a > Default for ParserOptions < ' a > {
106+ impl Default for ParserOptions < ' _ > {
107107 fn default ( ) -> Self {
108108 ParserOptions {
109109 recover : true ,
@@ -191,7 +191,7 @@ type XmlCloseCallback = unsafe extern "C" fn(*mut c_void) -> c_int;
191191
192192///Convert usize to i32 safely.
193193fn try_usize_to_i32 ( value : usize ) -> Result < i32 , XmlParseError > {
194- if cfg ! ( target_pointer_width = "16" ) || ( value < i32:: max_value ( ) as usize ) {
194+ if cfg ! ( target_pointer_width = "16" ) || ( value < i32:: MAX as usize ) {
195195 // Cannot safely use our value comparison, but the conversion if always safe.
196196 // Or, if the value can be safely represented as a 32-bit signed integer.
197197 Ok ( value as i32 )
You can’t perform that action at this time.
0 commit comments