Skip to content

Commit fc6975e

Browse files
committed
Add temporary unimplemented mark before proper implementation
1 parent 914c3be commit fc6975e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/std/src/math/uint256.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,7 @@ impl Uint256 {
211211
}
212212

213213
pub fn pow(self, exp: u32) -> Self {
214-
self.checked_pow(exp)
215-
.expect("attempt to raise to a power with overflow")
214+
unimplemented!()
216215
}
217216

218217
pub fn checked_add(self, other: Self) -> Result<Self, OverflowError> {

packages/std/src/math/uint512.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,10 @@ impl Uint512 {
309309
self.0.is_zero()
310310
}
311311

312+
pub fn pow(self, exp: u32) -> Self {
313+
unimplemented!()
314+
}
315+
312316
pub fn checked_add(self, other: Self) -> Result<Self, OverflowError> {
313317
self.0
314318
.checked_add(other.0)

0 commit comments

Comments
 (0)