sed -i -s 's/#\[deriving(/#\[derive(/g' **/*.rs
This commit is contained in:
parent
8c5bb80d9b
commit
351409a622
231 changed files with 1115 additions and 1115 deletions
|
@ -35,7 +35,7 @@ pub type StrComponents<'a> =
|
|||
Map<&'a [u8], Option<&'a str>, Components<'a>, fn(&[u8]) -> Option<&str>>;
|
||||
|
||||
/// Represents a POSIX file path
|
||||
#[deriving(Clone)]
|
||||
#[derive(Clone)]
|
||||
pub struct Path {
|
||||
repr: Vec<u8>, // assumed to never be empty or contain NULs
|
||||
sepidx: Option<uint> // index of the final separator in repr
|
||||
|
|
|
@ -78,7 +78,7 @@ pub type Components<'a> =
|
|||
//
|
||||
// The only error condition imposed here is valid utf-8. All other invalid paths are simply
|
||||
// preserved by the data structure; let the Windows API error out on them.
|
||||
#[deriving(Clone)]
|
||||
#[derive(Clone)]
|
||||
pub struct Path {
|
||||
repr: String, // assumed to never be empty
|
||||
prefix: Option<PathPrefix>,
|
||||
|
@ -969,7 +969,7 @@ pub fn is_sep_byte_verbatim(u: &u8) -> bool {
|
|||
}
|
||||
|
||||
/// Prefix types for Path
|
||||
#[deriving(Copy, PartialEq, Clone, Show)]
|
||||
#[derive(Copy, PartialEq, Clone, Show)]
|
||||
pub enum PathPrefix {
|
||||
/// Prefix `\\?\`, uint is the length of the following component
|
||||
VerbatimPrefix(uint),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue