Skip to content

Commit

Permalink
Update rust.yml (#62)
Browse files Browse the repository at this point in the history
Fix README.md example
  • Loading branch information
rodrimati1992 authored Dec 6, 2024
1 parent dc87c05 commit eb496f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- uses: actions/checkout@v2
- name: ci-nighly
if: ${{ !(matrix.rust == '1.57.0' || matrix.rust == "1.64.0") }}
if: ${{ matrix.rust != '1.57.0' && matrix.rust != '1.64.0' }}
run: |
rustup override set ${{ matrix.rust }}
Expand All @@ -60,7 +60,6 @@ jobs:
cargo test --features "__test derive constant_time_as_str"
cargo test --features "__test derive constant_time_as_str assertc"
cargo test --features "__test derive constant_time_as_str assertc more_str_macros rust_1_83"
cargo test --features "__inline_const_pat_tests derive constant_time_as_str assertc more_str_macros rust_1_83"
- uses: actions/checkout@v2
- name: ci-nighly
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,9 @@ const fn compute_age(s: &str) -> usize { s.len() * 6 }
This example demonstrates how you can use the [`ConstDebug`] derive macro,
and then format the type into a `&'static str` constant.

This example requires Rust nightly, and the `"derive"` feature.
This example requires Rust 1.83.0, and the `"derive"` feature.

```rust
#![feature(const_mut_refs)]

use const_format::{ConstDebug, formatc};

#[derive(ConstDebug)]
Expand Down

0 comments on commit eb496f9

Please sign in to comment.