nixbot

builds

failed treefmt-check checks.aarch64-darwin.formatting · build #86 · raw

1treefmt v2.5.0ERRO formatter | ast-grep: failed to apply with options '[scan]': exit status 123error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path4 ┌─ crates/tincd/src/hostdirs.rs:72:285672 │ pub fn names(&self) -> std::io::Result<Vec<String>> {7 │ ^^^^^^^^^^^^^^^89error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path10 ┌─ crates/tincd/src/hostdirs.rs:82:56111282 │ fn collect(dir: &Path, into: &mut BTreeSet<String>) -> std::io::Result<()> {13 │ ^^^^^^^^^^^^^^^1415error[no-comment-essays]: comment block of 8+ lines; condense it to the WHY16 ┌─ crates/tincd/src/invitation_serve.rs:200:11718193 │ ╭ /// Writes the host file (overlay if configured). Addrcache/script/unlink/19194 │ │ ╭ /// type-2 are daemon-side.20 │ ╰────────────'21195 │ │ ╭ ///22 │ ╰──────────'23196 │ │ ╭ /// # Errors24 │ ╰────────'25197 │ │ ╭ /// - `BadPubkey`: newline = config-injection (**security**).26 │ ╰──────'27198 │ │ ╭ /// - `HostFileExists`: don't overwrite or shadow a known node in either28 │ ╰────'29199 │ │ ╭ /// dir (**security**: attacker could replace a known key). The write30 │ ╰──'31200 │ ╭ │ /// itself is `O_CREAT|O_EXCL` (no TOCTOU within the write dir).32 │ │ ╰'33201 │ │ ╭ pub(crate) fn finalize(34 │ ╰────────────────^35 · │ 36246 │ │ }37 │ ╰───────────────'3839error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path40 ┌─ crates/tincd/tests/two_daemons/reload.rs:57:41414257 │ fn invite_bob(alice: &Node) -> (String, std::path::PathBuf) {43 │ ^^^^^^^^^^^^^^^^^^4445error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path46 ┌─ crates/tincd/tests/two_daemons/reload.rs:85:24474885 │ fn cli_paths(confbase: std::path::PathBuf) -> tinc_tools::names::Paths {49 │ ^^^^^^^^^^^^^^^^^^5051Error: 5 error(s) found in code.52Help: Scan succeeded and found error level diagnostics in the codebase.535455traversed 719 files56emitted 298 files for processing57formatted 26 files (0 changed) in 543ms58Error: failed to finalise formatting: formatting failures detected