Skip to content

Commit 1df44e2

Browse files
update project to rust 2024 edition
1 parent 73562a2 commit 1df44e2

File tree

4 files changed

+88
-80
lines changed

4 files changed

+88
-80
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: windows-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919

2020
- uses: dtolnay/rust-toolchain@stable
2121

Cargo.lock

Lines changed: 80 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
[package]
22
name = "anonlink"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
authors = ["StackOverflowExcept1on"]
5-
edition = "2021"
5+
edition = "2024"
66
description = "Command line tool to automatically patch link.exe to remove Rich PE Header"
77
repository = "https://github.com/StackOverflowExcept1on/anonlink"
88
license = "MIT"
99
keywords = ["linker", "patcher", "rich-pe"]
1010
categories = ["command-line-utilities"]
1111

1212
[dependencies]
13-
thiserror = "1.0"
13+
thiserror = "2.0"
1414
pelite = "0.10"
1515
pdb = "0.8"
16-
ureq = "2.10"
16+
ureq = "3.1"
1717
iced-x86 = "1.21"
1818

1919
[profile.release]

src/pdb/symbol_table.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl SymbolResolver for RemoteSymbolResolver {
2828
_instruction_operand: Option<u32>,
2929
address: u64,
3030
_address_size: u32,
31-
) -> Option<SymbolResult> {
31+
) -> Option<SymbolResult<'_>> {
3232
self.rva2symbol(&address)
3333
.map(|symbol_string| SymbolResult::with_str(address, symbol_string.as_str()))
3434
}
@@ -41,7 +41,8 @@ pub fn download_symbols(file: PeFile) -> crate::Result<RemoteSymbolResolver> {
4141
let resp = ureq::get(&pdb_link).call().map_err(Box::new)?;
4242

4343
let mut buf = Vec::new();
44-
resp.into_reader().read_to_end(&mut buf)?;
44+
let (_, body) = resp.into_parts();
45+
body.into_reader().read_to_end(&mut buf)?;
4546

4647
let cursor = io::Cursor::new(buf);
4748

0 commit comments

Comments
 (0)