From d3abca46a830e8f51799d95071d5ea26a85b6d4b Mon Sep 17 00:00:00 2001 From: Lucien Greathouse Date: Mon, 14 Jun 2021 12:50:54 -0400 Subject: [PATCH] Fix deprecation warning by writing better code --- tests/rojo_test/io_util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/rojo_test/io_util.rs b/tests/rojo_test/io_util.rs index b060be65..4c33706b 100644 --- a/tests/rojo_test/io_util.rs +++ b/tests/rojo_test/io_util.rs @@ -34,7 +34,7 @@ pub fn copy_recursive(from: &Path, to: &Path) -> io::Result<()> { Ok(_) => {} Err(err) => match err.kind() { io::ErrorKind::AlreadyExists => {} - _ => panic!(err), + _ => return Err(err), }, } } else {