1
0
mirror of https://github.com/j178/prek.git synced 2026-04-25 02:11:36 +02:00

Use bigger buffer size for fixing trailing whitespace (#705)

This commit is contained in:
Jo
2025-09-10 19:31:36 +08:00
committed by GitHub
parent cbddcb9fb6
commit cf81ca3644
@@ -13,7 +13,7 @@ use crate::hook::Hook;
use crate::run::CONCURRENCY;
const MARKDOWN_LINE_BREAK: &[u8] = b" ";
const BUFFER_SIZE_THRESHOLD: usize = 16 * 1024; // 16KB
const BUFFER_SIZE_THRESHOLD: usize = 64 * 1024; // 64KB
#[derive(Clone)]
struct Chars(Vec<char>);