mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 04:58:42 +00:00
Fix confusing doc of Vfs::add_path
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
24b1941c1a
commit
989be49cb0
1 changed files with 1 additions and 2 deletions
|
@ -14,8 +14,7 @@ impl Vfs {
|
||||||
Self(HashMap::with_capacity(16))
|
Self(HashMap::with_capacity(16))
|
||||||
}
|
}
|
||||||
|
|
||||||
/// * `path` - must be canonical, must not be empty and must
|
/// * `path` - must be canonical, must not be empty.
|
||||||
/// start with a prefix.
|
|
||||||
pub(super) fn add_path(&mut self, mut path: &Path) {
|
pub(super) fn add_path(&mut self, mut path: &Path) {
|
||||||
while let Some(parent) = path.parent() {
|
while let Some(parent) = path.parent() {
|
||||||
if let Some(path_str) = path.to_str() {
|
if let Some(path_str) = path.to_str() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue