File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,13 @@ mod tests {
2727 use crate :: test:: util:: TestEnv ;
2828
2929 fn run_stubgen ( input : & str ) -> String {
30- run_stubgen_with_config ( input, & ExtractConfig {
31- include_private : false ,
32- include_docstrings : false ,
33- } )
30+ run_stubgen_with_config (
31+ input,
32+ & ExtractConfig {
33+ include_private : false ,
34+ include_docstrings : false ,
35+ } ,
36+ )
3437 }
3538
3639 fn run_stubgen_with_config ( input : & str , config : & ExtractConfig ) -> String {
@@ -107,10 +110,10 @@ mod tests {
107110 let expected = fs_anyhow:: read_to_string ( & expected_path)
108111 . unwrap ( )
109112 . replace ( "\r \n " , "\n " ) ;
110- // Strip the @ generated header and trim whitespace so the expected
113+ // Strip the AT generated header and trim whitespace so the expected
111114 // files can keep the header for tooling without affecting comparison.
112115 let expected = expected
113- . strip_prefix ( "# @generated\n " )
116+ . strip_prefix ( & format ! ( "# @{} generated\n " , "" ) ) // Avoid this file from being recognized as generated
114117 . unwrap_or ( & expected)
115118 . trim ( )
116119 . to_owned ( ) ;
You can’t perform that action at this time.
0 commit comments