Skip to content

Commit 1698449

Browse files
committed
feat!: move gix-odb::Write trait to gix-object::Write.
There it's far more useful and plumbing crates are enabled to write objects without pulling in `gix-odb` as dependency.
1 parent 3fb9c4f commit 1698449

File tree

17 files changed

+475
-472
lines changed

17 files changed

+475
-472
lines changed

gix-object/src/lib.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,14 @@ pub mod data;
3333
///
3434
pub mod find;
3535

36+
///
37+
pub mod write {
38+
/// The error type returned by the [`Write`](crate::Write) trait.
39+
pub type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
40+
}
41+
3642
mod traits;
37-
pub use traits::{Exists, Find, FindExt, FindObjectOrHeader, Header as FindHeader, HeaderExt, WriteTo};
43+
pub use traits::{Exists, Find, FindExt, FindObjectOrHeader, Header as FindHeader, HeaderExt, Write, WriteTo};
3844

3945
pub mod encode;
4046
pub(crate) mod parse;

gix-object/src/traits.rs

-363
This file was deleted.

0 commit comments

Comments
 (0)