Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
radicle/git/raw: Limit scope of `RemoteCallbacks`
Merged lorenz opened 6 months ago

Found with cargo clippy --package=radicle, this is only used in tests.

1 file changed +6 -2 191c2879 86b7ef23
modified crates/radicle/src/git/raw.rs
@@ -6,10 +6,14 @@

// Re-exports that are only used within this crate.
pub(crate) use git2::{
-
    message_trailers_strs, AutotagOption, Blob, Config, FetchOptions, FetchPrune, Object,
-
    RemoteCallbacks, Revwalk, Sort,
+
    message_trailers_strs, AutotagOption, Blob, Config, FetchOptions, FetchPrune, Object, Revwalk,
+
    Sort,
};

+
// Re-exports that are only used within this crate for testing.
+
#[cfg(any(test, feature = "test"))]
+
pub(crate) use git2::RemoteCallbacks;
+

// Re-exports that are used by other crates in the workspace, including this crate.
pub use git2::{
    Branch, BranchType, Commit, Direction, Error, ErrorClass, ErrorCode, FileMode, ObjectType, Oid,