treefmt v2.5.0ERRO formatter | ast-grep: failed to apply with options '[scan]': exit status 1 error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path ┌─ crates/tincd/src/hostdirs.rs:73:28 │ 73 │ pub fn names(&self) -> std::io::Result> { │ ^^^^^^^^^^^^^^^ error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path ┌─ crates/tincd/src/hostdirs.rs:83:56 │ 83 │ fn collect(dir: &Path, into: &mut BTreeSet) -> std::io::Result<()> { │ ^^^^^^^^^^^^^^^ error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path ┌─ crates/tincd/tests/two_daemons/reload.rs:57:41 │ 57 │ fn invite_bob(alice: &Node) -> (String, std::path::PathBuf) { │ ^^^^^^^^^^^^^^^^^^ error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path ┌─ crates/tincd/tests/two_daemons/reload.rs:85:24 │ 85 │ fn cli_paths(confbase: std::path::PathBuf) -> tinc_tools::names::Paths { │ ^^^^^^^^^^^^^^^^^^ error[no-comment-essays]: comment block of 8+ lines; condense it to the WHY ┌─ crates/tincd/src/invitation_serve.rs:200:1 │ 193 │ ╭ /// Writes the host file, into the overlay when one is configured. The 194 │ │ ╭ /// addrcache update, script, unlink and type-2 reply are daemon-side. │ ╰────────────' 195 │ │ ╭ /// │ ╰──────────' 196 │ │ ╭ /// # Errors │ ╰────────' 197 │ │ ╭ /// - `BadPubkey`: newline = config-injection (**security**). │ ╰──────' 198 │ │ ╭ /// - `HostFileExists`: the name exists in either directory. Overwriting │ ╰────' 199 │ │ ╭ /// or shadowing it would let an invitee replace a known key. The write │ ╰──' 200 │ ╭ │ /// itself is `O_CREAT|O_EXCL`, so there is no TOCTOU in the write dir. │ │ ╰' 201 │ │ ╭ pub(crate) fn finalize( │ ╰────────────────^ · │ 246 │ │ } │ ╰───────────────' Error: 5 error(s) found in code. Help: Scan succeeded and found error level diagnostics in the codebase. traversed 719 files emitted 298 files for processing formatted 26 files (0 changed) in 461ms Error: failed to finalise formatting: formatting failures detected