File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ impl<'gctx> PathSource<'gctx> {
49
49
///
50
50
/// This source will only return the package at precisely the `path`
51
51
/// specified, and it will be an error if there's not a package at `path`.
52
- pub fn new ( path : & Path , source_id : SourceId , gctx : & ' gctx GlobalContext ) -> PathSource < ' gctx > {
53
- PathSource {
52
+ pub fn new ( path : & Path , source_id : SourceId , gctx : & ' gctx GlobalContext ) -> Self {
53
+ Self {
54
54
source_id,
55
55
path : path. to_path_buf ( ) ,
56
56
updated : false ,
@@ -68,14 +68,10 @@ impl<'gctx> PathSource<'gctx> {
68
68
///
69
69
/// Note that this should be used with care and likely shouldn't be chosen
70
70
/// by default!
71
- pub fn new_recursive (
72
- root : & Path ,
73
- id : SourceId ,
74
- gctx : & ' gctx GlobalContext ,
75
- ) -> PathSource < ' gctx > {
76
- PathSource {
71
+ pub fn new_recursive ( root : & Path , id : SourceId , gctx : & ' gctx GlobalContext ) -> Self {
72
+ Self {
77
73
recursive : true ,
78
- ..PathSource :: new ( root, id, gctx)
74
+ ..Self :: new ( root, id, gctx)
79
75
}
80
76
}
81
77
You can’t perform that action at this time.
0 commit comments