Skip to content

Commit

Permalink
chore: Bump minimal Rust version to 1.75.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GrayJack committed Nov 18, 2024
1 parent 37faf19 commit 6fda29a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: ["1.70.0", "stable", "nightly"]
toolchain: ["1.75.0", "stable", "nightly"]
steps:
- name: Checkout sources
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords = ["bit", "bitmask", "bitflags", "flags"]
categories = ["no-std"]
repository = "https://github.com/GrayJack/bitflag-attr"
homepage = "https://github.com/GrayJack/bitflag-attr"
rust-version = "1.70.0"
rust-version = "1.75.0"
exclude = ["/tests", "/.github"]

[lib]
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ fn bitflag_impl(attr: TokenStream, item: TokenStream) -> Result<TokenStream> {
#debug_impl

impl #ty_name {
const FLAGS: &[(&str, #ty_name)] = &[#((#all_flags_names , #all_flags) ,)*];
const FLAGS: &'static [(&'static str, #ty_name)] = &[#((#all_flags_names , #all_flags) ,)*];

/// Yield a set of contained flags values.
///
Expand Down Expand Up @@ -811,7 +811,7 @@ fn bitflag_impl(attr: TokenStream, item: TokenStream) -> Result<TokenStream> {

/// Helper for formatting in human readable format. Write a flags value as text,
/// ignoring any unknown bits.
pub(crate) fn to_writer_truncate<W>(&self, mut writer: W) -> ::core::fmt::Result
pub(crate) fn to_writer_truncate<W>(&self, writer: W) -> ::core::fmt::Result
where
W: ::core::fmt::Write
{
Expand Down

0 comments on commit 6fda29a

Please sign in to comment.