@@ -191,20 +191,20 @@ pub struct Attributes<'a> {
191
191
impl < ' a > Attributes < ' a > {
192
192
/// Internal constructor, used by `BytesStart`. Supplies data in reader's encoding
193
193
#[ inline]
194
- pub ( crate ) const fn wrap ( buf : & ' a [ u8 ] , pos : usize , html : bool ) -> Self {
194
+ pub ( crate ) fn wrap ( buf : & ' a [ u8 ] , pos : usize , html : bool ) -> Self {
195
195
Self {
196
196
bytes : buf,
197
197
state : IterState :: new ( pos, html) ,
198
198
}
199
199
}
200
200
201
201
/// Creates a new attribute iterator from a buffer.
202
- pub const fn new ( buf : & ' a str , pos : usize ) -> Self {
202
+ pub fn new ( buf : & ' a str , pos : usize ) -> Self {
203
203
Self :: wrap ( buf. as_bytes ( ) , pos, false )
204
204
}
205
205
206
206
/// Creates a new attribute iterator from a buffer, allowing HTML attribute syntax.
207
- pub const fn html ( buf : & ' a str , pos : usize ) -> Self {
207
+ pub fn html ( buf : & ' a str , pos : usize ) -> Self {
208
208
Self :: wrap ( buf. as_bytes ( ) , pos, true )
209
209
}
210
210
@@ -412,7 +412,7 @@ impl<T> Attr<T> {
412
412
impl < ' a > Attr < & ' a [ u8 ] > {
413
413
/// Returns the key value
414
414
#[ inline]
415
- pub const fn key ( & self ) -> QName < ' a > {
415
+ pub fn key ( & self ) -> QName < ' a > {
416
416
QName ( match self {
417
417
Attr :: DoubleQ ( key, _) => key,
418
418
Attr :: SingleQ ( key, _) => key,
@@ -425,7 +425,7 @@ impl<'a> Attr<&'a [u8]> {
425
425
///
426
426
/// [HTML specification]: https://www.w3.org/TR/2012/WD-html-markup-20120329/syntax.html#syntax-attr-empty
427
427
#[ inline]
428
- pub const fn value ( & self ) -> & ' a [ u8 ] {
428
+ pub fn value ( & self ) -> & ' a [ u8 ] {
429
429
match self {
430
430
Attr :: DoubleQ ( _, value) => value,
431
431
Attr :: SingleQ ( _, value) => value,
@@ -514,7 +514,7 @@ pub(crate) struct IterState {
514
514
}
515
515
516
516
impl IterState {
517
- pub const fn new ( offset : usize , html : bool ) -> Self {
517
+ pub fn new ( offset : usize , html : bool ) -> Self {
518
518
Self {
519
519
state : State :: Next ( offset) ,
520
520
html,
0 commit comments