Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Lokathor/tinyvec
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.6.1
Choose a base ref
...
head repository: Lokathor/tinyvec
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.0
Choose a head ref
  • 6 commits
  • 4 files changed
  • 2 contributors

Commits on Jul 5, 2024

  1. Add retain_mut (#198)

    * Add retain_mut
    
    This adds a `retain_mut` method to `ArrayVec` and
    `TinyVec` that's just `retain` but with mutable
    references. This method is present on
    `std::vec::Vec` as of a while ago so it's nice to
    have in `tinyvec` too.
    
    Fixes #195
    
    * `TinyVec::retain_mut` requires rustc_1_61 feature
    
    It calls `std::vec::Vec::retain_mut` which is only
    available since Rust 1.61. People that still want
    to use a very old compiler (CI seems to use 1.47)
    still get to compile the crate, they just don't
    get `TinyVec::retain_mut`.
    
    Note that `ArrayVec::retain_mut` is implemented
    inside the crate so it's still available, just the
    `TinyVec` format is not.
    
    * Add some tests for ArrayVec::retain_mut
    Fuuzetsu authored Jul 5, 2024
    Configuration menu
    Copy the full SHA
    5097217 View commit details
    Browse the repository at this point in the history
  2. changelog

    Lokathor committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    f94410b View commit details
    Browse the repository at this point in the history
  3. chore: Release

    Lokathor committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    ed22e15 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Add ArrayVec::as_inner() (#197)

    Originally I was going to call this `as_array()`
    but `as_inner()` is more consistent with the
    existing `into_inner()` method. I don't
    _ultimately_ care what it ends up being called.
    
    I wonder if we should have a `impl
    From<ArrayVec<T>> for A` implementation or is that
    a bit too foot-gun-y?
    
    This lives in its own `impl<A> ArrayVec<A>` block
    because rust 1.47.0 is unhappy about having a
    const function inside `impl<A: Array>
    ArrayVec<A>`. We don't need the trait anyway.
    
    Fixes #193.
    Fuuzetsu authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    1838a18 View commit details
    Browse the repository at this point in the history
  2. changelog

    Lokathor committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    dabb712 View commit details
    Browse the repository at this point in the history
  3. chore: Release

    Lokathor committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    4afac90 View commit details
    Browse the repository at this point in the history
Loading