diff --git a/sdl2-sys/build.rs b/sdl2-sys/build.rs index 25be7610..d0ef44bf 100644 --- a/sdl2-sys/build.rs +++ b/sdl2-sys/build.rs @@ -220,7 +220,7 @@ fn patch_sdl2(sdl2_source_path: &Path) { // ever have more than one hunk. assert!(added_file.len() == 1); let file_path = sdl2_source_path.join(added_file.path()); - let mut dst_file = fs::File::create(&file_path) + let dst_file = fs::File::create(&file_path) .expect(&format!( "Failed to create file {}", file_path.to_string_lossy()));