Skip to content

Commit

Permalink
apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbepop committed Sep 22, 2019
1 parent 5501674 commit 6e3a052
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/apint/to_primitive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ impl ApInt {
if prim_ty.is_signed() && actual_width < target_width {
lsd.sign_extend_from(actual_width).expect(
"We already asserted that `actual_width` < `target_width` \
and since `target_width` is always less than or equal to \
`64` bits calling `Digit::sign_extend_from` is safe for it.",
and since `target_width` is always less than or equal to \
`64` bits calling `Digit::sign_extend_from` is safe for it.",
);
}
if target_width < BitWidth::w64() {
Expand Down
2 changes: 1 addition & 1 deletion src/digit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ impl Digit {
let width = width.into();
if width.to_usize() > BITS {
return Err(Error::invalid_bitwidth(width.to_usize()).with_annotation(
"Encountered invalid `BitWidth` for operating on a `Digit`."
"Encountered invalid `BitWidth` for operating on a `Digit`.",
))
}
Ok(())
Expand Down

0 comments on commit 6e3a052

Please sign in to comment.