Skip to content

Commit

Permalink
Merge pull request #876 from rhysd/warn-unused-field
Browse files Browse the repository at this point in the history
fix: fix dead code warning from nightly compiler
  • Loading branch information
Martin1887 committed Apr 5, 2024
2 parents 8c77390 + ac06693 commit 912405c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions pulldown-cmark/src/firstpass.rs
Expand Up @@ -1486,10 +1486,7 @@ impl<'a, 'b> FirstPass<'a, 'b> {
}
self.allocs.footdefs.0.insert(
UniCase::new(label.clone()),
FootnoteDef {
span: start..i,
use_count: 0,
},
FootnoteDef { use_count: 0 },
);
self.tree.append(Item {
start,
Expand Down
1 change: 0 additions & 1 deletion pulldown-cmark/src/parse.rs
Expand Up @@ -1436,7 +1436,6 @@ pub struct LinkDef<'a> {
/// Contains the destination URL, title and source span of a reference definition.
#[derive(Clone, Debug)]
pub struct FootnoteDef {
pub span: Range<usize>,
pub use_count: usize,
}

Expand Down

0 comments on commit 912405c

Please sign in to comment.