Compare commits

..

No commits in common. "187dcc4d3aede829be4d763e6c7afd20c18a6774" and "34b1be91513e7be30205e364440727984948ff51" have entirely different histories.

2 changed files with 3 additions and 11 deletions

View File

@ -30,7 +30,6 @@ use crate::foundations::{
RecipeIndex, Repr, Selector, Str, Style, StyleChain, Styles, Value,
};
use crate::introspection::Location;
use crate::introspection::Unlocatable;
use crate::layout::{AlignElem, Alignment, Axes, Length, MoveElem, PadElem, Rel, Sides};
use crate::model::{Destination, EmphElem, LinkElem, StrongElem};
use crate::text::UnderlineElem;
@ -706,7 +705,7 @@ impl Serialize for Content {
}
/// A sequence of content.
#[elem(Debug, Repr, Unlocatable)]
#[elem(Debug, Repr)]
pub struct SequenceElem {
/// The elements.
#[required]
@ -720,8 +719,6 @@ impl Debug for SequenceElem {
}
}
impl Unlocatable for Packed<SequenceElem> {}
// Derive is currently incompatible with `elem` macro.
#[allow(clippy::derivable_impls)]
impl Default for SequenceElem {
@ -745,7 +742,7 @@ impl Repr for SequenceElem {
}
/// Content alongside styles.
#[elem(Debug, Repr, PartialEq, Unlocatable)]
#[elem(Debug, Repr, PartialEq)]
pub struct StyledElem {
/// The content.
#[required]
@ -764,8 +761,6 @@ impl Debug for StyledElem {
}
}
impl Unlocatable for Packed<StyledElem> {}
impl PartialEq for StyledElem {
fn eq(&self, other: &Self) -> bool {
self.child == other.child

View File

@ -13,7 +13,6 @@ use crate::foundations::{
cast, elem, func, scope, ty, Array, Content, Func, NativeElement, NativeFunc, Packed,
PlainText, Repr as _,
};
use crate::introspection::Unlocatable;
/// A Unicode symbol.
///
@ -414,7 +413,7 @@ impl<'a> Iterator for Variants<'a> {
}
/// A single character.
#[elem(Repr, PlainText, Unlocatable)]
#[elem(Repr, PlainText)]
pub struct SymbolElem {
/// The symbol's character.
#[required]
@ -440,5 +439,3 @@ impl crate::foundations::Repr for SymbolElem {
eco_format!("[{}]", self.text)
}
}
impl Unlocatable for Packed<SymbolElem> {}