File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -223,6 +223,8 @@ pub fn discover(directory: impl AsRef<std::path::Path>) -> Result<Repository, di
223
223
}
224
224
225
225
/// See [`ThreadSafeRepository::discover_with_environment_overrides()`], but returns a [`Repository`] instead.
226
+ ///
227
+ /// Use this method if you want a [`Repository`], but don't require it to be `Sync`.
226
228
#[ allow( clippy:: result_large_err) ]
227
229
pub fn discover_with_environment_overrides (
228
230
directory : impl AsRef < std:: path:: Path > ,
@@ -231,6 +233,8 @@ pub fn discover_with_environment_overrides(
231
233
}
232
234
233
235
/// See [`ThreadSafeRepository::open_with_environment_overrides()`], but returns a [`Repository`] instead.
236
+ ///
237
+ /// Use this method if you want a [`Repository`], but don't require it to be `Sync`.
234
238
#[ allow( clippy:: result_large_err) ]
235
239
pub fn open_with_environment_overrides ( directory : impl Into < std:: path:: PathBuf > ) -> Result < Repository , open:: Error > {
236
240
ThreadSafeRepository :: open_with_environment_overrides ( directory, Default :: default ( ) ) . map ( Into :: into)
You can’t perform that action at this time.
0 commit comments