Skip to content

Commit 96d6126

Browse files
committed
Implement Default for std::io::FilePermission
1 parent f3e0db1 commit 96d6126

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libstd/io/mod.rs

+6
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ responding to errors that may occur while attempting to read the numbers.
223223

224224
use char::Char;
225225
use collections::Collection;
226+
use default::Default;
226227
use fmt;
227228
use int;
228229
use iter::Iterator;
@@ -1829,6 +1830,11 @@ on unix-like systems."]
18291830
}
18301831
)
18311832

1833+
impl Default for FilePermission {
1834+
#[inline]
1835+
fn default() -> FilePermission { FilePermission::empty() }
1836+
}
1837+
18321838
#[cfg(test)]
18331839
mod tests {
18341840
use super::{IoResult, Reader, MemReader, NoProgress, InvalidInput};

0 commit comments

Comments
 (0)