File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -142,11 +142,10 @@ mod cache {
142
142
std:: env:: var_os ( "XDG_CONFIG_HOME" )
143
143
. map ( |path| ( path, & self . xdg_config_home_env ) )
144
144
. or_else ( || std:: env:: var_os ( "HOME" ) . map ( |path| ( path, & self . home_env ) ) )
145
- . map ( |( base, permission) | {
145
+ . and_then ( |( base, permission) | {
146
146
let resource = std:: path:: PathBuf :: from ( base) . join ( "git" ) . join ( resource_file_name) ;
147
147
permission. check ( resource) . transpose ( )
148
148
} )
149
- . flatten ( )
150
149
. transpose ( )
151
150
}
152
151
}
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ impl Permission {
153
153
Permission :: Deny => Ok ( None ) ,
154
154
Permission :: Forbid => Err ( permission:: Error {
155
155
resource,
156
- permission : self . clone ( ) ,
156
+ permission : * self ,
157
157
} ) ,
158
158
}
159
159
}
You can’t perform that action at this time.
0 commit comments