Skip to main content

max / makeover-build

Format
Author: Max Johnson <me@maxj.phd> · 2026-08-10 23:26 UTC
Signed with PGP, not checked
Commit: e2f6e88de429221c6b6f75f4eaaf29fbcb118f3c
Parent: 2b65504
1 file changed, +4 insertions, -2 deletions
M src/drift.rs +4 -2
@@ -168,7 +168,8 @@
168 168 use super::*;
169 169
170 170 fn scratch(name: &str) -> PathBuf {
171 - let dir = std::env::temp_dir().join(format!("makeover-drift-{}-{name}", std::process::id()));
171 + let dir =
172 + std::env::temp_dir().join(format!("makeover-drift-{}-{name}", std::process::id()));
172 173 let _ = std::fs::remove_dir_all(&dir);
173 174 std::fs::create_dir_all(&dir).expect("create scratch");
174 175 dir
@@ -230,7 +231,8 @@
230 231 // The const is read far more often than it is declared, and a read
231 232 // states no string. Counting one as a declaration would make the
232 233 // `found > 0` assertion pass on a frontend that only imports it.
233 - let src = format!("import {{ {CONST_NAME} }} from './touch.js';\nmatchMedia({CONST_NAME});\n");
234 + let src =
235 + format!("import {{ {CONST_NAME} }} from './touch.js';\nmatchMedia({CONST_NAME});\n");
234 236 assert!(touch_density_literals(&src).is_empty());
235 237 }
236 238