History

rename git-object::(owned->mutable)|(borrowed|immutable) #(67)

This categorizes them semantically without using the overloaded names of owning and borrowing, which mean different things in Rust.

Sebastian Thiel committed 5 years ago

Commit 91ee5581 parent cd7356034 files · +149 −141Browse files

Showing the changes to git-object/src/commit.rs (1 of 34 files). Show all

Unified · Split

git-object/src/commit.rs+4−4
@@ -1,7 +1,7 @@
1−use crate::borrowed;
1+use crate::immutable;
22 use bstr::{BStr, ByteSlice};
33
4−/// An iterator over extra headers in [owned][crate::owned::Commit] and [borrowed][borrowed::Commit] commits.
4+/// An iterator over extra headers in [owned][crate::mutable::Commit] and [borrowed][immutable::Commit] commits.
55 pub struct ExtraHeaders<I> {
66 inner: I,
77 }
@@ -29,8 +29,8 @@ where · 21 unmodified lines
2929 ///
3030 /// A merge tag is a tag object embedded within the respective header field of a commit, making
3131 /// it a child object of sorts.
32− pub fn mergetags(self) -> impl Iterator<Item = Result<borrowed::Tag<'a>, borrowed::Error>> {
33− self.find_all("mergetag").map(|b| borrowed::Tag::from_bytes(b))
32+ pub fn mergetags(self) -> impl Iterator<Item = Result<immutable::Tag<'a>, immutable::Error>> {
33+ self.find_all("mergetag").map(|b| immutable::Tag::from_bytes(b))
3434 }
3535
3636 /// Return the cryptographic signature provided by gpg/pgp verbatim.