提交 7e3fd148 编写于 作者: A Alex Crichton

Test fixes and rebase conflicts, round 3

上级 990202cd
......@@ -124,6 +124,7 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// # #![feature(ascii)]
/// use std::ascii::AsciiExt;
///
/// let mut ascii = 'a';
......@@ -142,6 +143,7 @@ pub trait AsciiExt {
/// # Examples
///
/// ```
/// # #![feature(ascii)]
/// use std::ascii::AsciiExt;
///
/// let mut ascii = 'A';
......
......@@ -265,7 +265,7 @@ mod dl {
use libc;
use libc::consts::os::extra::ERROR_CALL_NOT_IMPLEMENTED;
use ops::FnOnce;
use os;
use sys::os;
use os::windows::prelude::*;
use option::Option::{self, Some, None};
use ptr;
......
......@@ -12,7 +12,7 @@
use std::dynamic_lib::DynamicLibrary;
use std::os;
use std::old_path::Path;
use std::path::Path;
pub fn main() {
unsafe {
......
......@@ -30,7 +30,7 @@ fn clone_first(mut self) -> Option<<Self::Item as Deref>::Target> where
Self::Item: Deref,
<Self::Item as Deref>::Target: Clone,
{
self.next().cloned()
self.next().map(|x| x.clone())
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册