Skip to content

Commit

Permalink
bypass rust ICE bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HyeonuPark committed Mar 4, 2018
1 parent 52f4ed0 commit 40649aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions codebuf/src/node.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use serde::{Serialize, Serializer, Deserialize, Deserializer};
use span::Span;

#[derive(Clone, Default)]
pub struct Node<T: ?Sized> {
inner: Box<T>,
pub span: Span,
Expand Down Expand Up @@ -56,7 +55,7 @@ impl<T: PartialEq + ?Sized> PartialEq for Node<T> {
}
}

impl<T: Clone + ?Sized> Clone for Node<[T]> {
impl<T: ?Sized> Clone for Node<T> where Box<T>: Clone {
fn clone(&self) -> Self {
Node {
inner: self.inner.clone(),
Expand Down

0 comments on commit 40649aa

Please sign in to comment.