From eb496f9f97e40232f2c21fc25370302bceae2033 Mon Sep 17 00:00:00 2001 From: rodrimati1992 Date: Fri, 6 Dec 2024 17:52:19 -0300 Subject: [PATCH] Update rust.yml (#62) Fix README.md example --- .github/workflows/rust.yml | 3 +-- README.md | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 026d345..1256d0f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 }} @@ -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 diff --git a/README.md b/README.md index 32ae495..2369923 100644 --- a/README.md +++ b/README.md @@ -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)]