Skip to content

Commit

Permalink
Merge pull request #43 from rushmorem/bump-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
rushmorem authored Nov 13, 2024
2 parents 786c046 + e36de00 commit bc8c375
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
check:
name: Check on v1.56
name: Check on v1.68.2
runs-on: ubuntu-latest
steps:
- name: Checkout sources
Expand All @@ -13,7 +13,7 @@ jobs:
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.56.1
toolchain: 1.68.2
override: true

- name: Run cargo check
Expand Down
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ std = []
psl-types = "2.0.11"

# Optional dependencies
hashbrown = { version = "0.12.3", features = ["inline-more"], optional = true }
hashbrown = { version = "0.15.1", features = ["inline-more"], optional = true }
idna = { version = "1.0", optional = true }
unicase = { version = "2.6.0", default-features = false, optional = true }

[dev-dependencies]
lazy_static = "1.4.0"
rspec = "1.0.0"

[package.metadata.docs.rs]
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ impl List {
#[cfg(feature = "anycase")]
let key = UniCase::new(Cow::from(label.to_owned()));

current = current.children.entry(key).or_insert_with(Default::default);
current = current.children.entry(key).or_default();
}

current.leaf = Some(Leaf { is_exception, typ });
Expand Down
6 changes: 3 additions & 3 deletions tests/list.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use publicsuffix::{List, Psl, Type};
use rspec::report::ExampleResult;
use std::sync::LazyLock;
use std::{env, mem, str};

lazy_static::lazy_static! {
static ref LIST: List = include_str!("public_suffix_list.dat").parse().unwrap();
}
static LIST: LazyLock<List> =
LazyLock::new(|| include_str!("public_suffix_list.dat").parse().unwrap());

#[test]
fn list_behaviour() {
Expand Down

0 comments on commit bc8c375

Please sign in to comment.