Skip to content

Commit

Permalink
x.py fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Feb 19, 2021
1 parent 0060c91 commit 1abcdfe
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions library/std/src/sys/wasi/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,12 +558,7 @@ pub fn link(original: &Path, link: &Path) -> io::Result<()> {
let (original, original_file) = open_parent(original)?;
let (link, link_file) = open_parent(link)?;
// Pass 0 as the flags argument, meaning don't follow symlinks.
original.link(
0,
osstr2str(original_file.as_ref())?,
&link,
osstr2str(link_file.as_ref())?,
)
original.link(0, osstr2str(original_file.as_ref())?, &link, osstr2str(link_file.as_ref())?)
}

pub fn stat(p: &Path) -> io::Result<FileAttr> {
Expand Down

0 comments on commit 1abcdfe

Please sign in to comment.