Skip to content
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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
Expand All @@ -33,7 +33,7 @@ jobs:
name: rustfmt
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/palette.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
createPullRequest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- name: Make changes to pull request
run: curl -Lo src/palette.json 'https://raw.githubusercontent.com/catppuccin/palette/main/palette.json'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-plz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install Rust toolchain
Expand All @@ -43,7 +43,7 @@ jobs:
cancel-in-progress: false
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Install Rust toolchain
Expand Down
16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ serde = { version = "1.0.203", features = ["derive"], optional = true }

[build-dependencies]
itertools = "0.14.0"
prettyplease = "0.2.20"
proc-macro2 = "1.0.84"
quote = "1.0.36"
serde = { version = "1.0.203", features = ["derive"] }
serde_json = "1.0.117"
syn = "2.0.66"
prettyplease = "0.2.37"
proc-macro2 = "1.0.101"
quote = "1.0.41"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.145"
syn = "2.0.106"

[dev-dependencies]
crossterm = "0.28.1"
serde_json = "1.0.117"
crossterm = "0.29.0"
serde_json = "1.0.145"

[features]
ansi-term = ["dep:ansi_term"]
Expand Down
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ impl Palette {

/// Create an iterator over the flavors in the palette.
#[must_use]
pub const fn iter(&self) -> FlavorIterator {
pub const fn iter(&self) -> FlavorIterator<'_> {
FlavorIterator {
current: 0,
phantom: PhantomData,
Expand Down Expand Up @@ -345,7 +345,7 @@ impl FlavorName {
impl FlavorColors {
/// Create an iterator over the colors in the flavor.
#[must_use]
pub const fn iter(&self) -> ColorIterator {
pub const fn iter(&self) -> ColorIterator<'_> {
ColorIterator {
colors: self,
current: 0,
Expand All @@ -356,7 +356,7 @@ impl FlavorColors {
impl FlavorAnsiColors {
/// Create an iterator over the ANSI colors in the flavor.
#[must_use]
pub const fn iter(&self) -> AnsiColorIterator {
pub const fn iter(&self) -> AnsiColorIterator<'_> {
AnsiColorIterator {
ansi_colors: self,
current: 0,
Expand All @@ -373,7 +373,7 @@ impl FlavorAnsiColors {
impl FlavorAnsiColorPairs {
/// Create an iterator over the ANSI color pairs in the flavor.
#[must_use]
pub const fn iter(&self) -> AnsiColorPairsIterator {
pub const fn iter(&self) -> AnsiColorPairsIterator<'_> {
AnsiColorPairsIterator {
ansi_color_pairs: self,
current: 0,
Expand Down Expand Up @@ -476,7 +476,7 @@ impl<'a> IntoIterator for &'a FlavorAnsiColorPairs {
impl Flavor {
/// Create an iterator over the colors in the flavor.
#[must_use]
pub const fn iter(&self) -> ColorIterator {
pub const fn iter(&self) -> ColorIterator<'_> {
self.colors.iter()
}

Expand Down
Loading