mirror of
https://github.com/typst/typst
synced 2025-08-21 02:08:33 +08:00
Cleanup
This commit is contained in:
parent
314e7a042c
commit
20186c09ac
@ -669,15 +669,7 @@ impl<'a> Generator<'a> {
|
|||||||
|
|
||||||
let supplement = child.supplement(StyleChain::default());
|
let supplement = child.supplement(StyleChain::default());
|
||||||
let locator = supplement.as_ref().map(|c| {
|
let locator = supplement.as_ref().map(|c| {
|
||||||
// let mut hasher = DefaultHasher::new();
|
let id = *supplement_ids.entry(c.plain_text()).or_insert_with(|| {
|
||||||
// c.hash(&mut hasher);
|
|
||||||
// let content_hash = hasher.finish();
|
|
||||||
|
|
||||||
let plain_text = c.plain_text();
|
|
||||||
// println!("plain_text: {}", plain_text);
|
|
||||||
// println!("{c:?}");
|
|
||||||
|
|
||||||
let id = *supplement_ids.entry(plain_text).or_insert_with(|| {
|
|
||||||
let id = next_supplement_id;
|
let id = next_supplement_id;
|
||||||
next_supplement_id += 1;
|
next_supplement_id += 1;
|
||||||
id
|
id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user