mirror of
https://github.com/typst/typst
synced 2025-08-20 09:49:02 +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 locator = supplement.as_ref().map(|c| {
|
||||
// let mut hasher = DefaultHasher::new();
|
||||
// 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 = *supplement_ids.entry(c.plain_text()).or_insert_with(|| {
|
||||
let id = next_supplement_id;
|
||||
next_supplement_id += 1;
|
||||
id
|
||||
|
Loading…
x
Reference in New Issue
Block a user