diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fc9ee06..8e2f516 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -26,5 +26,6 @@ jobs: - uses: actions/checkout@v4 - name: Install valgrind run: sudo apt install valgrind + - run: rustup update --no-self-update 1.82 && rustup default 1.82 - name: Run tests run: cargo test diff --git a/.github/workflows/style.yaml b/.github/workflows/style.yaml index 615e052..3542015 100644 --- a/.github/workflows/style.yaml +++ b/.github/workflows/style.yaml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: rustup update stable && rustup default stable + - run: rustup update --no-self-update 1.83 && rustup default 1.83 - run: rustup component add clippy - name: Run linter run: cargo clippy --color=always -- -D warnings diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e258ac..ea0b673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## unreleased - Add more helpful error message if the program under test overflows its stack ([#93](https://github.com/jfrimmel/cargo-valgrind/pull/93)) +- Perform LTO on release ([#109](https://github.com/jfrimmel/cargo-valgrind/pull/109)) +- Updated documentation +- Raised MSRV to 1.58 ## Version 2.2.1 - Ensure, that consistent tag names are used ([#89](https://github.com/jfrimmel/cargo-valgrind/pull/89)). diff --git a/src/valgrind/xml/mod.rs b/src/valgrind/xml/mod.rs index 98c3cd9..661e522 100644 --- a/src/valgrind/xml/mod.rs +++ b/src/valgrind/xml/mod.rs @@ -164,7 +164,7 @@ pub struct Frame { } impl Display for Frame { fn fmt(&self, f: &mut Formatter) -> fmt::Result { - f.write_str(self.function.as_ref().unwrap_or(&"unknown".into()))?; + f.write_str(self.function.as_ref().map_or("unknown", |s| s.as_str()))?; if let Some(file) = &self.file { f.write_str(" (")?; f.write_str(file)?; @@ -183,7 +183,7 @@ fn deserialize_hex<'de, D: Deserializer<'de>>(deserializer: D) -> Result Visitor<'de> for HexVisitor { +impl Visitor<'_> for HexVisitor { type Value = u64; fn expecting(&self, f: &mut Formatter) -> fmt::Result {