Skip to content

Commit

Permalink
Upgrade dependencies to appease cargo audit and other changes.
Browse files Browse the repository at this point in the history
Upgrade dependencies to appease cargo audit.
Remove unnecessary lifetime annotations.
Remove unnecessary cast.
  • Loading branch information
jgerrish committed Oct 30, 2023
1 parent f5c304f commit aa1250f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "image-rider"
version = "0.6.0"
version = "0.7.0"
edition = "2021"
authors = ["Joshua Gerrish <jgerrish@gmail.com>"]
description = "Disk image and ROM image parser"
Expand All @@ -12,11 +12,11 @@ license = "MIT"

[dependencies]
config = "0.13"
clap = { version = "3.2", features = ["derive"] }
clap = { version = "4.4", features = ["derive"] }
log = "0.4"
env_logger = "0.9"
env_logger = "0.10"
toml = "0.5"
nom = "7.1"

[dev-dependencies]
pretty_assertions = "1.3"
pretty_assertions = "1.4"
4 changes: 2 additions & 2 deletions src/disk_format/apple/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,9 @@ pub fn volume_parser(guess: AppleDiskGuess, filesize: u64) -> IResult<&[u8], App
}

/// Parse an Apple ][ Disk
pub fn apple_disk_parser<'a, 'b>(
pub fn apple_disk_parser<'a>(
guess: AppleDiskGuess<'a>,
config: &'b Config,
config: &Config,
) -> IResult<&'a [u8], AppleDisk<'a>> {
let i = guess.data;

Expand Down
4 changes: 2 additions & 2 deletions src/disk_format/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ impl DiskImageSaver for DiskImage<'_> {
}

/// Parses a file given a filename, returning a DiskImage
pub fn file_parser<'a, 'b>(
pub fn file_parser<'a>(
filename: &str,
data: &'a [u8],
config: &'b Config,
config: &Config,
) -> IResult<&'a [u8], DiskImage<'a>> {
let guess_image_type = format_from_filename_and_data(filename, data);

Expand Down
2 changes: 1 addition & 1 deletion src/disk_format/stx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub fn crc16_add_byte(crc: u16, byte: u8) -> u16 {
let mut new_crc = crc;

// exclusive or the shifted byte and the current CRC
new_crc ^= ((byte as u16) << 8) as u16;
new_crc ^= (byte as u16) << 8;

// Rust for-loop iteration is not inclusive on the end
for _i in 0..8 {
Expand Down

0 comments on commit aa1250f

Please sign in to comment.