We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4546889 commit 886e26eCopy full SHA for 886e26e
git-discover/src/upwards.rs
@@ -139,14 +139,12 @@ pub(crate) mod function {
139
cursor.as_ref()
140
}
141
.metadata()
142
- .map_err(|_| Error::InaccessibleDirectory {
143
- path: cursor.to_path_buf(),
144
- })?;
+ .map_err(|_| Error::InaccessibleDirectory { path: cursor.clone() })?;
145
146
if device_id(&metadata) != initial_device {
147
return Err(Error::NoGitRepositoryWithinFs {
148
path: dir.into_owned(),
149
- limit: cursor.to_path_buf(),
+ limit: cursor.clone(),
150
});
151
152
0 commit comments