mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-20 17:41:37 +00:00
Fix deprecation warning by writing better code
This commit is contained in:
parent
17fdd18c55
commit
d3abca46a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue