Skip to content

Commit

Permalink
Produces a compiler panic. Checked in so it can be referenced in a bu…
Browse files Browse the repository at this point in the history
…g report.
  • Loading branch information
neallester committed Dec 24, 2017
1 parent 71181ed commit aeb9b12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub struct Entity<'a, E: ?Sized> where E: 'a + EntityStruct<'a> {
item: Option<Box<RefCell<E>>>,
id: Uuid,
base_version: u32,
return_channel: Option<Sender<Entity<'a, E>>>,
return_channel: Option<Sender<Entity<'a, EntityStruct<'a>>>>,
// TODO return channel needs to work on an EntityStruct, not parameter E so that we can have
// one receiver for all entity types
// TODO id should be a reference instead of the struct, with the owner being the batch object.
Expand Down Expand Up @@ -252,7 +252,7 @@ mod tests {
}


fn mock_test_entity<'a> (uuid: Uuid, sender: Sender<Entity<'a, TestStruct>>) -> Entity<'a, TestStruct> {
fn mock_test_entity<'a> (uuid: Uuid, sender: Sender<Entity<'a, EntityStruct>>) -> Entity<'a, TestStruct> {
let s1 = TestStruct {
a: 100,
v: vec![200, 300],
Expand All @@ -269,7 +269,7 @@ mod tests {
fn entity_test() {
let uuid = Uuid::new_v4();
let uuid_thread = uuid.clone();
let (tx, rx): (Sender<Entity<TestStruct>>, Receiver<Entity<TestStruct>>) = channel();
let (tx, rx): (Sender<Entity<EntityStruct>>, Receiver<Entity<EntityStruct>>) = channel();
thread::spawn (move || {
let mut my_entity = mock_test_entity(uuid_thread, tx);
{
Expand Down

0 comments on commit aeb9b12

Please sign in to comment.