History

make fmt

Sebastian Thiel committed 4 years ago

Commit 0700b091 parent 3d7fc1812 files · +29 −24Browse files

Showing the changes to git-path/src (1 of 12 files). Show all

Unified · Split

git-path/src/realpath.rs+1−1
@@ -18,13 +18,13 @@ pub enum Error { · 17 unmodified lines
18pub const MAX_SYMLINKS: u8 = 32;18pub const MAX_SYMLINKS: u8 = 32;
19 19
20pub(crate) mod function {20pub(crate) mod function {
21 use crate::realpath::MAX_SYMLINKS;
22 use std::path::{21 use std::path::{
23 Component::{CurDir, Normal, ParentDir, Prefix, RootDir},22 Component::{CurDir, Normal, ParentDir, Prefix, RootDir},
24 Path, PathBuf,23 Path, PathBuf,
25 };24 };
26 25
27 use super::Error;26 use super::Error;
27 use crate::realpath::MAX_SYMLINKS;
28 28
29 /// Check each component of `path` and see if it is a symlink. If so, resolve it.29 /// Check each component of `path` and see if it is a symlink. If so, resolve it.
30 /// Do not fail for non-existing components, but assume these are as is.30 /// Do not fail for non-existing components, but assume these are as is.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t