Skip to content

Commit f46faad

Browse files
committed
build: migrate to 2024; update MSRV and CI workflow to 1.85
1 parent babdc3a commit f46faad

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
authors = ["m4b <m4b.github.io@gmail.com>"]
33
name = "bingrep"
44
version = "0.12.0"
5-
edition = "2021"
6-
rust-version = "1.71.0"
5+
edition = "2024"
6+
rust-version = "1.85.0"
77
keywords = ["binary", "elf", "mach", "pe", "cross-platform"]
88
repository = "https://github.com/m4b/bingrep"
99
license = "MIT"

src/format_meta.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use anyhow::Error;
2-
use hexplay::{self, HexViewBuilder, CODEPAGE_ASCII};
2+
use hexplay::{self, CODEPAGE_ASCII, HexViewBuilder};
33
use metagoblin::{Object, Tag};
4-
use prettytable::{row, Cell, Row};
4+
use prettytable::{Cell, Row, row};
55

6-
use crate::format::*;
76
use crate::Opt;
7+
use crate::format::*;
88

99
const SCALE: [char; 100] = [' '; 100];
1010

@@ -32,7 +32,7 @@ impl<'bytes> Meta<'bytes> {
3232
pub fn print_ranges(&self) -> Result<(), Error> {
3333
let buffer = &self.bytes;
3434
let mut franges = self.analysis.franges.iter().collect::<Vec<_>>();
35-
franges.sort_by(|&(ref r1, _), &(ref r2, _)| r2.len().cmp(&r1.len()));
35+
franges.sort_by(|&(r1, _), &(r2, _)| r2.len().cmp(&r1.len()));
3636
let spaces = (0_usize..100)
3737
.map(|e| if e % 2 == 0 { "0" } else { "1" })
3838
.collect::<String>();

0 commit comments

Comments
 (0)