Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/cargo/cargo-util-0.2.14
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius authored Sep 9, 2024
2 parents 8193141 + 5ff2dfe commit 13804e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dylint/src/library_packages/cargo_cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,9 @@ fn git_dependency_root(url: &str, details: &TomlDetailedDependency) -> Result<Pa
}
}

// smoelius: If we get here, it should be because `find_accessed_subdir` failed twice.
debug_assert!(errors.len() >= 2);

Err(anyhow!("Could not find git dependency root: {errors:#?}"))
}

Expand Down
2 changes: 1 addition & 1 deletion examples/general/abs_home_path/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### What it does
Checks for string literals that are absolute paths into the user's home directory, e.g.,
`env!(CARGO_MANIFEST_DIR)`.
`env!("CARGO_MANIFEST_DIR")`.

### Why is this bad?
The path might not exist when the code is used in production.
Expand Down
2 changes: 1 addition & 1 deletion examples/general/abs_home_path/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use std::{
dylint_linting::impl_late_lint! {
/// ### What it does
/// Checks for string literals that are absolute paths into the user's home directory, e.g.,
/// `env!(CARGO_MANIFEST_DIR)`.
/// `env!("CARGO_MANIFEST_DIR")`.
///
/// ### Why is this bad?
/// The path might not exist when the code is used in production.
Expand Down

0 comments on commit 13804e0

Please sign in to comment.