nixbot

builds

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

1tribuchet: building on eliza2treefmt v2.5.0ERRO formatter | ast-grep: failed to apply with options '[scan]': exit status 134error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path5 ┌─ crates/tincd/src/hostdirs.rs:73:286773 │ pub fn names(&self) -> std::io::Result<Vec<String>> {8 │ ^^^^^^^^^^^^^^^910error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path11 ┌─ crates/tincd/src/hostdirs.rs:83:56121383 │ fn collect(dir: &Path, into: &mut BTreeSet<String>) -> std::io::Result<()> {14 │ ^^^^^^^^^^^^^^^1516error[no-comment-essays]: comment block of 8+ lines; condense it to the WHY17 ┌─ crates/tincd/src/invitation_serve.rs:200:11819193 │ ╭ /// Writes the host file, into the overlay when one is configured. The20194 │ │ ╭ /// addrcache update, script, unlink and type-2 reply are daemon-side.21 │ ╰────────────'22195 │ │ ╭ ///23 │ ╰──────────'24196 │ │ ╭ /// # Errors25 │ ╰────────'26197 │ │ ╭ /// - `BadPubkey`: newline = config-injection (**security**).27 │ ╰──────'28198 │ │ ╭ /// - `HostFileExists`: the name exists in either directory. Overwriting29 │ ╰────'30199 │ │ ╭ /// or shadowing it would let an invitee replace a known key. The write31 │ ╰──'32200 │ ╭ │ /// itself is `O_CREAT|O_EXCL`, so there is no TOCTOU in the write dir.33 │ │ ╰'34201 │ │ ╭ pub(crate) fn finalize(35 │ ╰────────────────^36 · │ 37246 │ │ }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 881ms59Error: failed to finalise formatting: formatting failures detected