@@ -49,7 +49,9 @@ fn iconforge() {
49
49
if !file_name. starts_with ( "iconforge_rustg_" ) || !file_name. ends_with ( ".dmi" ) {
50
50
continue ;
51
51
}
52
- let size = file_name. replace ( "iconforge_rustg_" , "" ) . replace ( ".dmi" , "" ) ;
52
+ let size = file_name
53
+ . replace ( "iconforge_rustg_" , "" )
54
+ . replace ( ".dmi" , "" ) ;
53
55
let headless_path_str = format ! ( "tests/dm/tmp/headless_iconforge_rustg_{size}.dmi" ) ;
54
56
let headless_path = Path :: new ( & headless_path_str) ;
55
57
if !std:: fs:: exists ( headless_path) . unwrap ( ) {
@@ -66,7 +68,10 @@ fn iconforge() {
66
68
}
67
69
}
68
70
// Compare BYOND's copied version of a valid headless icon states
69
- if let Some ( diff) = compare_dmis ( Path :: new ( "tests/dm/tmp/iconforge_valid_headless_copied.dmi" ) , Path :: new ( "tests/dm/tmp/iconforge_valid_headless.dmi" ) ) {
71
+ if let Some ( diff) = compare_dmis (
72
+ Path :: new ( "tests/dm/tmp/iconforge_valid_headless_copied.dmi" ) ,
73
+ Path :: new ( "tests/dm/tmp/iconforge_valid_headless.dmi" ) ,
74
+ ) {
70
75
differences. push ( format ! (
71
76
"icon tests/dm/tmp/iconforge_valid_headless.dmi differs from tests/dm/tmp/iconforge_valid_headless_copied.dmi:\n {diff}" ,
72
77
) ) ;
@@ -101,7 +106,9 @@ fn tmp_cleanup() {
101
106
} ;
102
107
for entry in dir. flatten ( ) {
103
108
if let Some ( file_name) = entry. file_name ( ) . to_str ( ) {
104
- if ( file_name. starts_with ( "iconforge_" ) || file_name. starts_with ( "headless_iconforge_" ) ) && file_name. ends_with ( ".dmi" ) {
109
+ if ( file_name. starts_with ( "iconforge_" ) || file_name. starts_with ( "headless_iconforge_" ) )
110
+ && file_name. ends_with ( ".dmi" )
111
+ {
105
112
let _ = std:: fs:: remove_file ( entry. path ( ) ) ;
106
113
}
107
114
}
0 commit comments