Fix remaining cases of leaking imports

This commit is contained in:
Alex Crichton
2014-01-06 19:05:53 -08:00
parent 7e0443d6c4
commit c4d36b85a0
31 changed files with 44 additions and 17 deletions

View File

@@ -199,11 +199,12 @@ pub mod dl {
#[cfg(target_os = "win32")]
pub mod dl {
use os;
use libc;
use os;
use path::GenericPath;
use path;
use ptr;
use result::*;
use result::{Ok, Err, Result};
pub unsafe fn open_external(filename: &path::Path) -> *libc::c_void {
os::win32::as_utf16_p(filename.as_str().unwrap(), |raw_name| {