From 80d1964394611a41f82f241e10b7dd09bf606ebb Mon Sep 17 00:00:00 2001 From: zs Date: Sun, 30 Nov 2025 18:44:21 +0800 Subject: [PATCH] Format sources --- src/fuzzy_match.cc | 4 ++-- src/pipeline.cc | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/fuzzy_match.cc b/src/fuzzy_match.cc index df0ce8c6..64e9d165 100644 --- a/src/fuzzy_match.cc +++ b/src/fuzzy_match.cc @@ -111,8 +111,8 @@ int FuzzyMatcher::match(std::string_view text, bool strict) { dp[0][j + 1][1] = kMinScore * 2; } for (int i = 0; i < int(pat.size()); i++) { - int(*pre)[2] = dp[i & 1]; - int(*cur)[2] = dp[(i + 1) & 1]; + int (*pre)[2] = dp[i & 1]; + int (*cur)[2] = dp[(i + 1) & 1]; cur[i][0] = cur[i][1] = kMinScore; for (int j = i; j < n; j++) { cur[j + 1][0] = std::max(cur[j][0] + missScore(j, false), cur[j][1] + missScore(j, true)); diff --git a/src/pipeline.cc b/src/pipeline.cc index 8cb44561..a6ba1181 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -686,9 +686,7 @@ void mainLoop() { // If the "exit" notification has been received, clear all index requests // to make indexers stop in time. if (g_quit.load(std::memory_order_relaxed)) { - index_request->apply([&](std::deque &q) { - q.clear(); - }); + index_request->apply([&](std::deque &q) { q.clear(); }); } bool indexed = false;