style(format): reformat code with consistent line breaks and spacing

This commit is contained in:
zhenyi
2026-06-12 15:11:32 +08:00
parent 6f40921576
commit 0e13f90834
16 changed files with 381 additions and 347 deletions
+4 -4
View File
@@ -165,9 +165,7 @@ impl GitksService {
.unwrap_or_else(|_| self.repo_prefix.clone());
let canonical = match candidate.canonicalize() {
Ok(canon) => {
canon
}
Ok(canon) => canon,
Err(_) => {
let parent = candidate.parent().unwrap_or(&self.repo_prefix);
let filename = candidate.file_name().ok_or_else(|| {
@@ -198,7 +196,9 @@ impl GitksService {
));
}
let double_canon = canonical.canonicalize().unwrap_or_else(|_| canonical.clone());
let double_canon = canonical
.canonicalize()
.unwrap_or_else(|_| canonical.clone());
if canonical != double_canon {
return Err(tonic::Status::invalid_argument(
"path resolved to different target (possible symlink race)",