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

use associated type bound #78

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading