File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -45,8 +45,11 @@ impl Platform<'_> {
45
45
/// These are of the form `refs/heads/` or `refs/remotes/origin`, and must not contain relative paths components like `.` or `..`.
46
46
// TODO: Create a custom `Path` type that enforces the requirements of git naturally, this type is surprising possibly on windows
47
47
// and when not using a trailing '/' to signal directories.
48
- pub fn prefixed < ' a > ( & self , prefix : & ' a RelativePath ) -> Result < Iter < ' _ > , init:: Error > {
49
- Ok ( Iter :: new ( self . repo , self . platform . prefixed ( prefix) ?) )
48
+ pub fn prefixed < ' a > (
49
+ & self ,
50
+ prefix : impl TryInto < & ' a RelativePath , Error = gix_path:: relative_path:: Error > ,
51
+ ) -> Result < Iter < ' _ > , init:: Error > {
52
+ Ok ( Iter :: new ( self . repo , self . platform . prefixed ( prefix. try_into ( ) ?) ?) )
50
53
}
51
54
52
55
// TODO: tests
You can’t perform that action at this time.
0 commit comments