Skip to content

Commit b744386

Browse files
committed
finish rewrite
1 parent 0a3c44b commit b744386

File tree

1 file changed

+12
-8
lines changed
  • crates/fig_os_shim/src

1 file changed

+12
-8
lines changed

crates/fig_os_shim/src/fs.rs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ use std::fs::Permissions;
33
use std::io;
44
#[cfg(unix)]
55
use std::os::unix::ffi::OsStrExt;
6-
use std::path::{Path, PathBuf};
7-
use std::sync::{Arc, Mutex};
6+
use std::path::{
7+
Path,
8+
PathBuf,
9+
};
10+
use std::sync::{
11+
Arc,
12+
Mutex,
13+
};
814

915
use tempfile::TempDir;
1016
use tokio::fs;
@@ -17,7 +23,10 @@ pub struct Fs(inner::Inner);
1723
mod inner {
1824
use std::collections::HashMap;
1925
use std::path::PathBuf;
20-
use std::sync::{Arc, Mutex};
26+
use std::sync::{
27+
Arc,
28+
Mutex,
29+
};
2130

2231
use tempfile::TempDir;
2332

@@ -365,14 +374,9 @@ impl Fs {
365374
/// On Windows, it automatically detects whether the target is a file or directory
366375
/// and uses the appropriate system call.
367376
///
368-
<<<<<<< HEAD
369-
/// This is a proxy to [`std::os::windows::fs::symlink_file`] or [`std::os::windows::fs::symlink_dir`] on Windows,
370-
/// and [`std::os::unix::fs::symlink`] on Unix.
371-
=======
372377
/// This is a proxy to [`std::os::windows::fs::symlink_file`] or
373378
/// [`std::os::windows::fs::symlink_dir`] on Windows, and [`std::os::unix::fs::symlink`] on
374379
/// Unix.
375-
>>>>>>> origin/main
376380
#[cfg(windows)]
377381
pub fn symlink_sync(&self, original: impl AsRef<Path>, link: impl AsRef<Path>) -> io::Result<()> {
378382
use inner::Inner;

0 commit comments

Comments
 (0)