devx-pre-commit 0.5.0

Utilities for creating git pre-commit hooks useful in rust projects
Documentation
Build #2462033 2025-08-31 06:43:13

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.91.0-nightly (523d3999d 2025-08-30)

# docs.rs version docsrs 0.6.0 (8bbaf878 2025-08-22)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/devx-pre-commit-0.5.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/devx-pre-commit-0.5.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250830-1.91.0-nightly-523d3999d\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7d35e198c9b2d88daace9acb021f217d8ce07862e6992983b3d3e17dd22d6669 [INFO] running `Command { std: "docker" "start" "-a" "7d35e198c9b2d88daace9acb021f217d8ce07862e6992983b3d3e17dd22d6669", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Checking devx-cmd v0.5.0 [INFO] [stderr] error[E0597]: `paths` does not live long enough [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/devx-cmd-0.5.0/src/lib.rs:276:26 [INFO] [stderr] | [INFO] [stderr] 275 | let paths = env::var_os("PATH").unwrap_or_default(); [INFO] [stderr] | ----- binding `paths` declared here [INFO] [stderr] 276 | env::split_paths(&paths) [INFO] [stderr] | - ^^^^^^ borrowed value does not live long enough [INFO] [stderr] | _________| [INFO] [stderr] | | [INFO] [stderr] 277 | | .map(|path| path.join(bin_name)) [INFO] [stderr] | |____________________________________________- a temporary with access to the borrow is created here ... [INFO] [stderr] 278 | .find_map(Self::try_at) [INFO] [stderr] 279 | } [INFO] [stderr] | - [INFO] [stderr] | | [INFO] [stderr] | `paths` dropped here while still borrowed [INFO] [stderr] | ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Map<SplitPaths<'_>, {closure@/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/devx-cmd-0.5.0/src/lib.rs:277:18: 277:24}>` [INFO] [stderr] | [INFO] [stderr] = note: the temporary is part of an expression at the end of a block; [INFO] [stderr] consider forcing this temporary to be dropped sooner, before the block's local variables are dropped [INFO] [stderr] help: for example, you could save the expression's value in a new local variable `x` and then make `x` be the expression at the end of the block [INFO] [stderr] | [INFO] [stderr] 276 ~ let x = env::split_paths(&paths) [INFO] [stderr] 277 | .map(|path| path.join(bin_name)) [INFO] [stderr] 278 ~ .find_map(Self::try_at); x [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0597`. [INFO] [stderr] error: could not compile `devx-cmd` (lib) due to 1 previous error [INFO] running `Command { std: "docker" "inspect" "7d35e198c9b2d88daace9acb021f217d8ce07862e6992983b3d3e17dd22d6669", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d35e198c9b2d88daace9acb021f217d8ce07862e6992983b3d3e17dd22d6669", kill_on_drop: false }` [INFO] [stdout] 7d35e198c9b2d88daace9acb021f217d8ce07862e6992983b3d3e17dd22d6669