Skip to content

Commit fb172b6

Browse files
committed
Allow dead code for symlink_junction()
1 parent 0bd55e5 commit fb172b6

File tree

1 file changed

+2
-0
lines changed
  • src/libstd/sys/windows

1 file changed

+2
-0
lines changed

src/libstd/sys/windows/fs.rs

+2
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,7 @@ pub fn copy(from: &Path, to: &Path) -> io::Result<u64> {
657657
Ok(size as u64)
658658
}
659659

660+
#[allow(dead_code)]
660661
pub fn symlink_junction<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::Result<()> {
661662
symlink_junction_inner(src.as_ref(), dst.as_ref())
662663
}
@@ -666,6 +667,7 @@ pub fn symlink_junction<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> io::R
666667
// what can be found here:
667668
//
668669
// http://www.flexhex.com/docs/articles/hard-links.phtml
670+
#[allow(dead_code)]
669671
fn symlink_junction_inner(target: &Path, junction: &Path) -> io::Result<()> {
670672
let d = DirBuilder::new();
671673
try!(d.mkdir(&junction));

0 commit comments

Comments
 (0)