Skip to content

Commit

Permalink
Clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton committed Jan 10, 2024
1 parent ae2d207 commit 5530426
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lazy/encoder/binary/v1_1/fixed_int.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use crate::result::IonFailure;
use crate::types::integer::IntData;
use crate::{Int, IonResult};

/// An Ion 1.1 encoding primitive that represents a fixed-length unsigned integer.
/// An Ion 1.1 encoding primitive that represents a fixed-length signed integer.
#[derive(Debug)]
pub struct FixedInt {
value: Int,
Expand Down Expand Up @@ -235,7 +235,7 @@ mod tests {
#[test]
fn decode_fixed_int() -> IonResult<()> {
for (expected_value, encoding) in FIXED_INT_TEST_CASES {
let fixed_int = FixedInt::read(*encoding, encoding.len(), 0)?;
let fixed_int = FixedInt::read(encoding, encoding.len(), 0)?;
let actual_value = fixed_int.value();
let expected_value = &Int::from(*expected_value);
assert_eq!(actual_value, expected_value, "actual value {actual_value} was != expected value {expected_value} for encoding {encoding:x?}")
Expand Down
2 changes: 1 addition & 1 deletion src/lazy/encoder/binary/v1_1/fixed_uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ mod tests {
#[test]
fn decode_fixed_uint() -> IonResult<()> {
for (expected_value, encoding) in FIXED_UINT_TEST_CASES {
let fixed_uint = FixedUInt::read(*encoding, encoding.len(), 0)?;
let fixed_uint = FixedUInt::read(encoding, encoding.len(), 0)?;
let actual_value = fixed_uint.value();
let expected_value = &UInt::from(*expected_value);
assert_eq!(actual_value, expected_value, "actual value {actual_value} was != expected value {expected_value} for encoding {encoding:x?}")
Expand Down

0 comments on commit 5530426

Please sign in to comment.