forked from rojo-rbx/rojo
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(_) => {}
|
Ok(_) => {}
|
||||||
Err(err) => match err.kind() {
|
Err(err) => match err.kind() {
|
||||||
io::ErrorKind::AlreadyExists => {}
|
io::ErrorKind::AlreadyExists => {}
|
||||||
_ => panic!(err),
|
_ => return Err(err),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user