Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 7fd75f5

Browse files
committed
Revert some changes to address comments
1 parent 1b32dbe commit 7fd75f5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

core/sr-primitives/src/sr_arithmetic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use crate::serde::{Serialize, Deserialize};
2121

2222
use rstd::{
23-
ops, ops::Div, cmp::Ordering, prelude::*,
23+
ops, cmp::Ordering, prelude::*,
2424
convert::{TryFrom, TryInto},
2525
};
2626
use codec::{Encode, Decode};
@@ -178,7 +178,7 @@ macro_rules! implement_per_thing {
178178
// `rem_multiplied_upper` is less than $max^2 therefore divided by $max it fits
179179
// in $type. remember that $type always fits $max.
180180
let mut rem_multiplied_divided_sized =
181-
rem_multiplied_upper.div(upper_max) as $type;
181+
(rem_multiplied_upper / upper_max) as $type;
182182
// fix a tiny rounding error
183183
if rem_multiplied_upper % upper_max > upper_max / 2 {
184184
rem_multiplied_divided_sized += 1;

core/sr-primitives/src/traits.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ pub trait Hash: 'static + MaybeSerializeDebug + Clone + Eq + PartialEq {
475475
#[cfg_attr(feature = "std", derive(Debug, Serialize, Deserialize))]
476476
pub struct BlakeTwo256;
477477

478-
impl self::Hash for BlakeTwo256 {
478+
impl Hash for BlakeTwo256 {
479479
type Output = primitives::H256;
480480
type Hasher = Blake2Hasher;
481481

0 commit comments

Comments
 (0)