1111// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212// See the License for the specific language governing permissions and
1313// limitations under the License.
14+ use std:: env;
15+ use std:: error:: Error ;
1416use std:: path;
1517use std:: path:: PathBuf ;
1618
@@ -21,7 +23,7 @@ use crate::test_helpers::output_includes;
2123use test_helpers:: { run_fails, run_succeeds} ;
2224
2325#[ test]
24- fn combined_integration_test1 ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
26+ fn combined_integration_test1 ( ) -> Result < ( ) , Box < dyn Error > > {
2527 let vh = "rabbitmqadmin.combined_integration.test1" ;
2628 let config_path = path:: absolute ( "./tests/fixtures/config_files/config_file1.conf" )
2729 . expect ( "failed to compute an absolute version for a ./test/fixtures path" ) ;
@@ -46,7 +48,7 @@ fn combined_integration_test1() -> Result<(), Box<dyn std::error::Error>> {
4648}
4749
4850#[ test]
49- fn combined_integration_test2 ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
51+ fn combined_integration_test2 ( ) -> Result < ( ) , Box < dyn Error > > {
5052 let vh = "rabbitmqadmin.combined_integration.test2" ;
5153
5254 // Uses a node alias that does not exist in the file
@@ -77,7 +79,7 @@ fn combined_integration_test2() -> Result<(), Box<dyn std::error::Error>> {
7779}
7880
7981#[ test]
80- fn combined_integration_test3 ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
82+ fn combined_integration_test3 ( ) -> Result < ( ) , Box < dyn Error > > {
8183 let vh = "rabbitmqadmin.combined_integration.test3" ;
8284
8385 // Uses a node alias that does not exist in the file
@@ -97,7 +99,7 @@ fn combined_integration_test3() -> Result<(), Box<dyn std::error::Error>> {
9799}
98100
99101#[ test]
100- fn combined_integration_test4 ( ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
102+ fn combined_integration_test4 ( ) -> Result < ( ) , Box < dyn Error > > {
101103 // This test uses administrative credentials to create a new user
102104 // and set up a topology using those new credentials
103105 let vh = "rabbitmqadmin.combined_integration.test4" ;
@@ -235,11 +237,11 @@ fn combined_integration_test4() -> Result<(), Box<dyn std::error::Error>> {
235237// Implementation
236238//
237239
238- fn report_a_missing_config_file ( config_path : PathBuf ) -> Result < ( ) , Box < dyn std :: error :: Error > > {
240+ fn report_a_missing_config_file ( config_path : PathBuf ) -> Result < ( ) , Box < dyn Error > > {
239241 println ! (
240242 "{} doesn't exist. Current working directory: {}" ,
241243 config_path. to_string_lossy( ) ,
242- std :: env:: current_dir( ) ?. display( )
244+ env:: current_dir( ) ?. display( )
243245 ) ;
244246 Ok ( ( ) )
245247}
0 commit comments