@@ -87,13 +87,15 @@ impl Config {
8787
8888#[ cfg( test) ]
8989mod test {
90- use super :: * ;
91-
9290 use std:: io:: Write as _;
9391
92+ use cargo_gpu_test_utils:: { overwrite_shader_cargo_toml, shader_crate_test_path} ;
93+
94+ use super :: * ;
95+
9496 #[ test_log:: test]
9597 fn booleans_from_cli ( ) {
96- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
98+ let shader_crate_path = shader_crate_test_path ( ) ;
9799
98100 let args = Config :: clap_command_with_cargo_config (
99101 & shader_crate_path,
@@ -111,8 +113,8 @@ mod test {
111113
112114 #[ test_log:: test]
113115 fn booleans_from_cargo ( ) {
114- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
115- let mut file = crate :: test :: overwrite_shader_cargo_toml ( & shader_crate_path) ;
116+ let shader_crate_path = shader_crate_test_path ( ) ;
117+ let mut file = overwrite_shader_cargo_toml ( & shader_crate_path) ;
116118 file. write_all (
117119 [
118120 "[package.metadata.rust-gpu.build]" ,
@@ -131,8 +133,8 @@ mod test {
131133 }
132134
133135 fn update_cargo_output_dir ( ) -> std:: path:: PathBuf {
134- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
135- let mut file = crate :: test :: overwrite_shader_cargo_toml ( & shader_crate_path) ;
136+ let shader_crate_path = shader_crate_test_path ( ) ;
137+ let mut file = overwrite_shader_cargo_toml ( & shader_crate_path) ;
136138 file. write_all (
137139 [
138140 "[package.metadata.rust-gpu.build]" ,
@@ -176,8 +178,8 @@ mod test {
176178
177179 #[ test_log:: test]
178180 fn arrays_from_cargo ( ) {
179- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
180- let mut file = crate :: test :: overwrite_shader_cargo_toml ( & shader_crate_path) ;
181+ let shader_crate_path = shader_crate_test_path ( ) ;
182+ let mut file = overwrite_shader_cargo_toml ( & shader_crate_path) ;
181183 file. write_all (
182184 [
183185 "[package.metadata.rust-gpu.build]" ,
@@ -200,7 +202,7 @@ mod test {
200202
201203 #[ test_log:: test]
202204 fn rename_manifest_parse ( ) {
203- let shader_crate_path = crate :: test :: shader_crate_test_path ( ) ;
205+ let shader_crate_path = shader_crate_test_path ( ) ;
204206
205207 let args = Config :: clap_command_with_cargo_config (
206208 & shader_crate_path,
0 commit comments