tree_walk: Use GIT_EUSER to abort a traversal
As per the discussion in
This requires making TreeWalkResult #[repr(i32)], which is fine.  Also,
remove an unnecessary pragma.
@@ -43,14 +43,14 @@ pub enum TreeWalkMode {
}
/// Possible return codes for tree walking callback functions.
-#[allow(dead_code)]
+#[repr(i32)]
pub enum TreeWalkResult {
/// Continue with the traversal as normal.
Ok = 0,
/// Skip the current node (in pre-order mode).
Skip = 1,
/// Completely stop the traversal.
- Abort = -1,
+ Abort = raw::GIT_EUSER,
}
impl Into<i32> for TreeWalkResult {
