Skip to content

Commit

Permalink
Remove cross borrowing from mut Box<T> to &mut T.
Browse files Browse the repository at this point in the history
Reference: rust-lang/rust#15171.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
  • Loading branch information
BlockBlazeDev committed Jun 26, 2014
1 parent 976d3ec commit e31d13c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/rust-crypto/sha2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ mod tests {

let mut sh = box Sha512::new();

test_hash(sh, tests.as_slice());
test_hash(&mut *sh, tests.as_slice());
}

#[test]
Expand All @@ -845,7 +845,7 @@ mod tests {

let mut sh = box Sha384::new();

test_hash(sh, tests.as_slice());
test_hash(&mut *sh, tests.as_slice());
}

#[test]
Expand All @@ -870,7 +870,7 @@ mod tests {

let mut sh = box Sha512Trunc256::new();

test_hash(sh, tests.as_slice());
test_hash(&mut *sh, tests.as_slice());
}

#[test]
Expand All @@ -895,7 +895,7 @@ mod tests {

let mut sh = box Sha512Trunc224::new();

test_hash(sh, tests.as_slice());
test_hash(&mut *sh, tests.as_slice());
}

#[test]
Expand All @@ -920,7 +920,7 @@ mod tests {

let mut sh = box Sha256::new();

test_hash(sh, tests.as_slice());
test_hash(&mut *sh, tests.as_slice());
}

#[test]
Expand All @@ -945,7 +945,7 @@ mod tests {

let mut sh = box Sha224::new();

test_hash(sh, tests.as_slice());
test_hash(&mut *sh, tests.as_slice());
}

#[test]
Expand Down

0 comments on commit e31d13c

Please sign in to comment.