mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-11 14:10:35 +08:00
@@ -795,12 +795,12 @@ impl<'a> Patches<'a> {
|
||||
Ok(PatchMut::new(id, patch, clock, self))
|
||||
}
|
||||
|
||||
/// Get an issue.
|
||||
/// Get a patch.
|
||||
pub fn get(&self, id: &ObjectId) -> Result<Option<Patch>, store::Error> {
|
||||
self.raw.get(id).map(|r| r.map(|(p, _)| p))
|
||||
}
|
||||
|
||||
/// Get an issue mutably.
|
||||
/// Get a patch mutably.
|
||||
pub fn get_mut<'g>(&'g mut self, id: &ObjectId) -> Result<PatchMut<'a, 'g>, store::Error> {
|
||||
let (patch, clock) = self
|
||||
.raw
|
||||
|
||||
Reference in New Issue
Block a user