mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Fixed codegen to use as_slice() instead of clone() for arguments
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ fn main() {
|
||||
os::set_exit_status(1);
|
||||
},
|
||||
3 => {
|
||||
let output_dir = GenericPath::new(args.get(2).clone());
|
||||
let output_dir = GenericPath::new(args.get(2).as_slice());
|
||||
match mkdir_recursive(&output_dir, UserDir) {
|
||||
Err(e) => fail!("Could not create directory for generated sources: {:s}", e.desc),
|
||||
Ok(_) => {},
|
||||
|
||||
Reference in New Issue
Block a user