mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 10:30:41 +08:00
cob: Remove EntryId and RevisionId conversions
Clippy warns that EntryId::from and RevisionId::from are not required. Remove the unecessary calls in radicle-cob and radicle. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
@@ -7,8 +7,8 @@ use git_ext::Oid;
|
||||
use radicle_dag::Dag;
|
||||
|
||||
use crate::{
|
||||
change, history::EntryId, object, signatures::ExtendedSignature, CollaborativeObject, Entry,
|
||||
History, ObjectId, TypeName,
|
||||
change, object, signatures::ExtendedSignature, CollaborativeObject, Entry, History, ObjectId,
|
||||
TypeName,
|
||||
};
|
||||
|
||||
/// The graph of changes for a particular collaborative object
|
||||
@@ -102,10 +102,10 @@ impl ChangeGraph {
|
||||
graph.node(id, entry);
|
||||
|
||||
for k in &change.dependents {
|
||||
graph.dependency(EntryId::from(*k), id);
|
||||
graph.dependency(*k, id);
|
||||
}
|
||||
for k in &change.dependencies {
|
||||
graph.dependency(id, EntryId::from(*k));
|
||||
graph.dependency(id, *k);
|
||||
}
|
||||
ControlFlow::Continue(graph)
|
||||
});
|
||||
|
||||
@@ -367,7 +367,7 @@ impl<T: FromHistory> Transaction<T> {
|
||||
object,
|
||||
parents,
|
||||
} = store.update(id, msg, actions.clone(), self.embeds, signer)?;
|
||||
let id = EntryId::from(head);
|
||||
let id = head;
|
||||
let author = self.actor;
|
||||
let timestamp = Timestamp::from_secs(object.history().timestamp());
|
||||
let identity = store.identity;
|
||||
|
||||
Reference in New Issue
Block a user