nixbot

builds

failed treefmt-check checks.x86_64-linux.formatting · build #89 · raw

1tribuchet: building on jamie2treefmt v2.5.0ERRO formatter | ast-grep: failed to apply with options '[scan]': exit status 134error[no-comment-essays]: comment block of 8+ lines; condense it to the WHY5 ┌─ crates/tincd/src/invitation_serve.rs:200:167193 │ ╭ /// Writes the host file, into the overlay when one is configured. The8194 │ │ ╭ /// addrcache update, script, unlink and type-2 reply are daemon-side.9 │ ╰────────────'10195 │ │ ╭ ///11 │ ╰──────────'12196 │ │ ╭ /// # Errors13 │ ╰────────'14197 │ │ ╭ /// - `BadPubkey`: newline = config-injection (**security**).15 │ ╰──────'16198 │ │ ╭ /// - `HostFileExists`: the name exists in either directory. Overwriting17 │ ╰────'18199 │ │ ╭ /// or shadowing it would let an invitee replace a known key. The write19 │ ╰──'20200 │ ╭ │ /// itself is `O_CREAT|O_EXCL`, so there is no TOCTOU in the write dir.21 │ │ ╰'22201 │ │ ╭ pub(crate) fn finalize(23 │ ╰────────────────^24 · │ 25246 │ │ }26 │ ╰───────────────'2728error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path29 ┌─ crates/tincd/src/hostdirs.rs:73:28303173 │ pub fn names(&self) -> std::io::Result<Vec<String>> {32 │ ^^^^^^^^^^^^^^^3334error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path35 ┌─ crates/tincd/src/hostdirs.rs:83:56363783 │ fn collect(dir: &Path, into: &mut BTreeSet<String>) -> std::io::Result<()> {38 │ ^^^^^^^^^^^^^^^3940error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path41 ┌─ crates/tincd/tests/two_daemons/reload.rs:57:41424357 │ fn invite_bob(alice: &Node) -> (String, std::path::PathBuf) {44 │ ^^^^^^^^^^^^^^^^^^4546error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path47 ┌─ crates/tincd/tests/two_daemons/reload.rs:85:24484985 │ fn cli_paths(confbase: std::path::PathBuf) -> tinc_tools::names::Paths {50 │ ^^^^^^^^^^^^^^^^^^5152Error: 5 error(s) found in code.53Help: Scan succeeded and found error level diagnostics in the codebase.545556traversed 719 files57emitted 298 files for processing58formatted 26 files (0 changed) in 638ms59Error: failed to finalise formatting: formatting failures detected