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:72:28 │ 72 │ 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:82:56 │ 82 │ fn collect(dir: &Path, into: &mut BTreeSet) -> std::io::Result<()> { │ ^^^^^^^^^^^^^^^ 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 (overlay if configured). Addrcache/script/unlink/ 194 │ │ ╭ /// type-2 are daemon-side. │ ╰────────────' 195 │ │ ╭ /// │ ╰──────────' 196 │ │ ╭ /// # Errors │ ╰────────' 197 │ │ ╭ /// - `BadPubkey`: newline = config-injection (**security**). │ ╰──────' 198 │ │ ╭ /// - `HostFileExists`: don't overwrite or shadow a known node in either │ ╰────' 199 │ │ ╭ /// dir (**security**: attacker could replace a known key). The write │ ╰──' 200 │ ╭ │ /// itself is `O_CREAT|O_EXCL` (no TOCTOU within the write dir). │ │ ╰' 201 │ │ ╭ pub(crate) fn finalize( │ ╰────────────────^ · │ 246 │ │ } │ ╰───────────────' 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: 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 543ms Error: failed to finalise formatting: formatting failures detected