Skip to content

Commit

Permalink
Fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoesposito1988 committed Sep 24, 2022
1 parent eeed012 commit 79b800c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/bin/wldd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ fn main() -> anyhow::Result<()> {

let binary_path = fs::canonicalize(binary_path)?;

#[cfg(not(windows))]
let mut query = LookupQuery::deduce_from_executable_location(binary_path)?;
#[cfg(windows)]
let query = LookupQuery::deduce_from_executable_location(binary_path)?;

#[cfg(not(windows))]
if let Some(overridden_winroot) = args.windows_root {
Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@
//! ```
//!
//! let exe_path = "path/to/some/executable.exe";
//!
//! # let d = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
//! # let relative_path =
//! # "test_data/test_project1/DepRunTest/build-same-output/bin/Debug/DepRunTest.exe";
//! # let exe_path = d.join(relative_path);
//! let mut query = dependency_runner::query::LookupQuery::deduce_from_executable_location(exe_path).unwrap();
//! query.parameters.extract_symbols = true;
//! let lookup_path = dependency_runner::path::LookupPath::deduce(&query);
Expand Down

0 comments on commit 79b800c

Please sign in to comment.