Skip to content

Commit

Permalink
use associated type bound (#78)
Browse files Browse the repository at this point in the history
* use associated type bound

* bump rust version

* update changelog
  • Loading branch information
asmello authored Oct 15, 2024
1 parent 73ce4ac commit c96007e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,10 @@ jobs:
runs-on: ubuntu-latest
# we use a matrix here just because env can't be used in job names
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
# TODO: would be nice to just parse this from the manifest
strategy:
matrix:
msrv: ["1.76"]
msrv: ["1.79"]
name: ubuntu / ${{ matrix.msrv }}
steps:
- uses: actions/checkout@v4
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Bump minimum Rust version to 1.79

## [0.6.2] 2024-09-30

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ keywords = ["json-pointer", "rfc-6901", "6901"]
license = "MIT OR Apache-2.0"
name = "jsonptr"
repository = "https://github.com/chanced/jsonptr"
rust-version = "1.76.0"
rust-version = "1.79.0"
version = "0.6.3"

[dependencies]
Expand Down
5 changes: 1 addition & 4 deletions src/pointer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -815,10 +815,7 @@ impl PointerBuf {
}

/// Creates a new `PointerBuf` from a slice of non-encoded strings.
pub fn from_tokens<'a, T>(tokens: impl IntoIterator<Item = T>) -> Self
where
T: Into<Token<'a>>,
{
pub fn from_tokens<'t>(tokens: impl IntoIterator<Item: Into<Token<'t>>>) -> Self {
let mut inner = String::new();
for t in tokens.into_iter().map(Into::into) {
inner.push('/');
Expand Down

0 comments on commit c96007e

Please sign in to comment.