radicle/git/raw: Limit scope of `RemoteCallbacks`
Found with `cargo clippy --package=radicle`, this is only used in tests.
This commit is contained in:
parent
191c287955
commit
86b7ef23c6
|
|
@ -6,10 +6,14 @@
|
||||||
|
|
||||||
// Re-exports that are only used within this crate.
|
// Re-exports that are only used within this crate.
|
||||||
pub(crate) use git2::{
|
pub(crate) use git2::{
|
||||||
message_trailers_strs, AutotagOption, Blob, Config, FetchOptions, FetchPrune, Object,
|
message_trailers_strs, AutotagOption, Blob, Config, FetchOptions, FetchPrune, Object, Revwalk,
|
||||||
RemoteCallbacks, Revwalk, Sort,
|
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.
|
// Re-exports that are used by other crates in the workspace, including this crate.
|
||||||
pub use git2::{
|
pub use git2::{
|
||||||
Branch, BranchType, Commit, Direction, Error, ErrorClass, ErrorCode, FileMode, ObjectType, Oid,
|
Branch, BranchType, Commit, Direction, Error, ErrorClass, ErrorCode, FileMode, ObjectType, Oid,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue