Skip to content

Commit

Permalink
Merge pull request #264 from quartiq/packed-sorted
Browse files Browse the repository at this point in the history
packed sorted
  • Loading branch information
jordens authored Nov 19, 2024
2 parents 15fea09 + 432e0fc commit de55c09
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion miniconf/tests/common/mod.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
use miniconf::{json, Path, TreeDeserialize, TreeKey, TreeSerialize};
use miniconf::{json, Packed, Path, TreeDeserialize, TreeKey, TreeSerialize};

pub fn paths<M, const D: usize>() -> Vec<String>
where
M: TreeKey,
{
assert!(M::nodes::<_, D>()
.exact_size()
.collect::<Result<Vec<(Packed, _)>, _>>()
.unwrap()
.is_sorted());
M::nodes::<Path<String, '/'>, D>()
.exact_size()
.map(|pn| {
Expand Down
6 changes: 3 additions & 3 deletions py/miniconf-mqtt/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
requires = ["setuptools"]
build-backend = "setuptools.build_meta"

[license]
text = "MIT"

[project]
name = "miniconf-mqtt"
# Note: keep this in sync with Cargo.toml
Expand All @@ -15,6 +12,9 @@ authors = [
{ name = "Robert Jördens", email = "rj@quartiq.de" },
]
dependencies = ["aiomqtt >= 2.1.0", "typing_extensions >= 4.11"]
classifiers = [
"License :: OSI Approved :: MIT License",
]

[project.urls]
Homepage = "https://github.com/quartiq/miniconf"
Expand Down

0 comments on commit de55c09

Please sign in to comment.