diff options
| author | Aiden Fox Ivey <aiden.foxivey@shopify.com> | 2025-09-02 17:27:30 -0400 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2025-09-02 15:57:14 -0700 |
| commit | 8e8f2ba2b46a3b95c90f2b6b60480b3c5cd7c23e (patch) | |
| tree | 14af122c67893824ac5be7cfb765490c0e901475 | |
| parent | d0ea036e8316aebe77986c060a899ee6c0510ed2 (diff) | |
ZJIT: Use copied over map(|x| *x)
| -rw-r--r-- | zjit/src/hir.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zjit/src/hir.rs b/zjit/src/hir.rs index afd158211d..8a5dd2e398 100644 --- a/zjit/src/hir.rs +++ b/zjit/src/hir.rs @@ -1012,7 +1012,7 @@ impl<T: Copy + Into<usize> + PartialEq> UnionFind<T> { /// Private. Return the internal representation of the forwarding pointer for a given element. fn at(&self, idx: T) -> Option<T> { - self.forwarded.get(idx.into()).map(|x| *x).flatten() + self.forwarded.get(idx.into()).copied().flatten() } /// Private. Set the internal representation of the forwarding pointer for the given element |
