提交 48636f31 编写于 作者: I inrustwetrust

Add missing inline attribute to Not impl for Wrapping<T>

上级 d8b64c7f
...@@ -123,6 +123,7 @@ fn mul(self, other: Wrapping<$t>) -> Wrapping<$t> { ...@@ -123,6 +123,7 @@ fn mul(self, other: Wrapping<$t>) -> Wrapping<$t> {
impl Not for Wrapping<$t> { impl Not for Wrapping<$t> {
type Output = Wrapping<$t>; type Output = Wrapping<$t>;
#[inline(always)]
fn not(self) -> Wrapping<$t> { fn not(self) -> Wrapping<$t> {
Wrapping(!self.0) Wrapping(!self.0)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册