We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fd0140 commit 25e2f1cCopy full SHA for 25e2f1c
crates/wasmi/src/engine/translator/func/encoder.rs
@@ -62,10 +62,7 @@ impl<T> From<Pos<T>> for BytePos {
62
impl<T> Copy for Pos<T> {}
63
impl<T> Clone for Pos<T> {
64
fn clone(&self) -> Self {
65
- Self {
66
- value: self.value.clone(),
67
- marker: PhantomData,
68
- }
+ *self
69
}
70
71
impl<T> PartialEq for Pos<T> {
@@ -76,7 +73,7 @@ impl<T> PartialEq for Pos<T> {
76
73
impl<T> Eq for Pos<T> {}
77
74
impl<T> PartialOrd for Pos<T> {
78
75
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
79
- self.value.partial_cmp(&other.value)
+ Some(self.cmp(other))
80
81
82
impl<T> Ord for Pos<T> {
0 commit comments