Skip to content

Commit

Permalink
Remove const on pointer comparison
Browse files Browse the repository at this point in the history
Closes #323
  • Loading branch information
clubby789 authored Jul 26, 2022
1 parent 6ed7356 commit 792c6d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/iced-x86/src/decoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1246,7 +1246,7 @@ impl<'a> Decoder<'a> {
/// ```
#[must_use]
#[inline]
pub const fn can_decode(&self) -> bool {
pub fn can_decode(&self) -> bool {
self.data_ptr != self.data_ptr_end
}

Expand Down

0 comments on commit 792c6d0

Please sign in to comment.