Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port recent fixes to the speedreader branch #57

Merged
merged 7 commits into from
May 16, 2024

Conversation

rillian
Copy link
Contributor

@rillian rillian commented May 15, 2024

Use the explicit call instead of the deprecated `remove` method.
This has the same behaviour as the previous call, so there is
no change to the public API.

The intent it so make explicit that the call swaps the last
element in the map into the place of the removed element,
which is O(1), vs. `shift_remove` which maintains ordering
but is O(n).

Addresses a deprecation warning with indexmap v2.2.6.
Replace the `std::string::ToString` impl with `std::fmt::Display`.
`ToString` is implemented in the std library for all `Display`
types, so documentation recommends implementing the more general
trait instead.

The new trait method is fallible, returning `fmt::Error` instead
of `unwrap()` on serialization failure, but the blanket `to_string`
impl converts this to a panic so the only behavior change is a
less-localized error message. Serialization shouldn't fail so
this isn't a major concern.

Addresses a clippy lint.
Correct alphabetical order for includes.
Copy recent changes to the github actions continuous integration
scripts from the main branch.
This is a major version bump, but our use isn't affected by
api changes. The `std` feature is enabled by default, so
there's not need to specify it directly.
Doctests have always been disabled in this repo. Add sufficient
annotations so that they pass and re-enable them.

As far as I can tell, the first `cell_extras` example is not
supposed to compile, demonstrating the soundness of the
extension trait. Perhaps this is why the tests were disabled.
It looks like the `compile_fail` annotation was stablized
in 2017 with rust 1.22.0.
Prepare to release recent changes to the speedreader branch.
@rillian rillian self-assigned this May 15, 2024
@rillian rillian requested a review from a team as a code owner May 15, 2024 23:44
@antonok-edm antonok-edm merged commit c48dca9 into speedreader May 16, 2024
4 checks passed
@antonok-edm antonok-edm deleted the speedreader-updates branch May 16, 2024 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants