Skip to content

Commit

Permalink
build(version): upgrade rust 2021, dependencies, clippy lints, version
Browse files Browse the repository at this point in the history
  • Loading branch information
Ninjani committed Apr 30, 2022
1 parent 915acfb commit c6950be
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ Main commands:
* `gooseberry move` - move annotations from one group to another (**move** not copy). Useful if you have a bunch of
annotations scattered around and want to move them into one group for gooseberry.

[0.9.2]: https://github.com/out-of-cheese-error/gooseberry/compare/0.9.1...0.9.2

[0.9.1]: https://github.com/out-of-cheese-error/gooseberry/compare/0.9.0...0.9.1

[0.9.0]: https://github.com/out-of-cheese-error/gooseberry/compare/0.8.1...0.9.0
Expand Down
5 changes: 3 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "gooseberry"
version = "0.9.2"
authors = ["Ninjani"]
edition = "2018"
edition = "2021"
description = "A command line utility to generate a knowledge base from Hypothesis annotations "
repository = "https://github.com/out-of-cheese-error/gooseberry"
readme = "README.md"
Expand All @@ -14,7 +14,7 @@ include = ["src/**/*", "README.md"]
[dependencies]
# Hypothesis
hypothesis = { version = "0.10.2", default-features = false }
tokio = { version = "1.17.0", features = ["macros"] }
tokio = { version = "1.18.0", features = ["macros"] }

# To extract the base URI
url = "2.2.2"
Expand Down
4 changes: 2 additions & 2 deletions src/gooseberry/knowledge_base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ fn group_annotations_by_order(
order_to_annotations
}

fn sort_annotations(sort: &[OrderBy], annotations: &mut Vec<AnnotationTemplate>) {
fn sort_annotations(sort: &[OrderBy], annotations: &mut [AnnotationTemplate]) {
annotations.sort_by(|a, b| {
sort.iter().fold(Ordering::Equal, |acc, &field| {
acc.then_with(|| match field {
Expand Down Expand Up @@ -307,7 +307,7 @@ impl Gooseberry {
make: bool,
index: bool,
) -> color_eyre::Result<()> {
let mut annotations = annotations
let mut annotations: Vec<_> = annotations
.into_iter()
.map(AnnotationTemplate::from_annotation)
.collect();
Expand Down

0 comments on commit c6950be

Please sign in to comment.