max / makeover-build
1 file changed,
+4 insertions,
-2 deletions
| @@ -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 |