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 4c17660 commit ad09282Copy full SHA for ad09282
asyncgit/src/lib.rs
@@ -4,6 +4,7 @@
4
#![forbid(missing_docs)]
5
#![deny(clippy::all)]
6
#![deny(clippy::result_unwrap_used)]
7
+#![deny(clippy::panic)]
8
9
mod diff;
10
mod error;
asyncgit/src/sync/utils.rs
@@ -24,7 +24,7 @@ pub fn repo(repo_path: &str) -> Result<Repository> {
24
)?;
25
26
if repo.is_bare() {
27
- panic!("bare repo")
+ return Err(Error::Generic("bare repo".to_string()));
28
}
29
30
Ok(repo)
0 commit comments