Skip to content

Commit

Permalink
Merge pull request #199 from rust-scraper/migrate-oncecell-std
Browse files Browse the repository at this point in the history
migrate once_cell::unsync::OnceCell to std::cell::OnceCell + drop dep…
  • Loading branch information
cfvescovo committed Aug 26, 2024
2 parents bc99f1d + ddfe967 commit 8fda509
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ selectors = "0.25.0"
tendril = "0.4.3"
ahash = "0.8"
indexmap = { version = "2.4.0", optional = true }
once_cell = "1.19"

[dependencies.getopts]
version = "0.2.21"
Expand Down
2 changes: 1 addition & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::slice::Iter as SliceIter;

use crate::{CaseSensitivity, StrTendril};
use html5ever::{Attribute, LocalName, QualName};
use once_cell::unsync::OnceCell;
use std::cell::OnceCell;

/// An HTML node.
// `Element` is usally the most common variant and hence boxing it
Expand Down

0 comments on commit 8fda509

Please sign in to comment.