mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-04-20 20:55:50 +00:00
Fix deprecation warning by writing better code
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user