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:
parent
287a920d12
commit
bf8cee2446
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue