Skip to content

Commit

Permalink
Fix clippy and doctests (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem committed Jan 10, 2023
1 parent 3d576bc commit 7d46e1a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ jobs:

- uses: Swatinem/rust-cache@v2

- name: Run cargo test
run: cargo test --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --doc

test-python:
strategy:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- run: cargo clippy --all-features --workspace --tests --examples -- -D clippy::all

- run: cargo test --workspace --all-features
- run: cargo test --workspace --all-features --all-targets
- run: cargo test --workspace --all-features --doc

weekly-audit:
name: Audit
Expand Down
4 changes: 2 additions & 2 deletions examples/minidump_stackwalk/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ impl<'a> minidump_processor::SymbolProvider for LocalSymbolProvider<'a> {
module.code_identifier(),
module.debug_identifier().unwrap_or_default(),
);
tracing::Span::current().record("module.id", &tracing::field::debug(&id));
tracing::Span::current().record("module.id", tracing::field::debug(&id));

let mut symcaches = self.symcaches.lock().unwrap();

Expand Down Expand Up @@ -337,7 +337,7 @@ impl<'a> minidump_processor::SymbolProvider for LocalSymbolProvider<'a> {
module.code_identifier(),
module.debug_identifier().unwrap_or_default(),
);
tracing::Span::current().record("module.id", &tracing::field::debug(&id));
tracing::Span::current().record("module.id", tracing::field::debug(&id));

let mut cfi = self.cfi_files.lock().unwrap();

Expand Down
8 changes: 6 additions & 2 deletions symbolic-ppdb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
//! and parse them with [`PortablePdbCache::parse`].
//! * Look up line information for a function on a `PortablePdbCache` with
//! [`PortablePdbCache::lookup`].
//!
//! ## Example
//! ```
//! use symbolic_testutils::fixture;
//! use symbolic_ppdb::{LineInfo, PortablePdb, PortablePdbCacheConverter, PortablePdbCache};
//! let buf = std::fs::read("tests/fixtures/integration.pdb").unwrap();
//!
//! let buf = std::fs::read(fixture("windows/portable.pdb")).unwrap();
//! let pdb = PortablePdb::parse(&buf).unwrap();
//!
//! let mut converter = PortablePdbCacheConverter::new();
Expand All @@ -32,7 +34,9 @@
//! ```
//!
//! # Structure of a Portable PDB file
//! An ECMA-335 file is divided into sections called _streams_. The possible streams are
//!
//! An ECMA-335 file is divided into sections called _streams_. The possible streams are:
//!
//! * `#~` ("metadata"), comprising information about classes, methods, modules, &c.,
//! organized into tables adhering to various schemas. The original ECMA-335 tables
//! are described in Section II.22 of the ECMA-335 spec, the tables added by Portable PDB are described
Expand Down

0 comments on commit 7d46e1a

Please sign in to comment.