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

miette! does not support capturing names in the current scope #201

Closed
gifnksm opened this issue Sep 1, 2022 · 0 comments · Fixed by #262
Closed

miette! does not support capturing names in the current scope #201

gifnksm opened this issue Sep 1, 2022 · 0 comments · Fixed by #262

Comments

@gifnksm
Copy link

gifnksm commented Sep 1, 2022

miette! does not support format_args_capture feature.

Source

use miette::{miette, Result};

fn main() -> Result<()> {
    let x = 123;
    return Err(miette!("{x}"));
}

Expected output

Error:
  × 123

Actual output

Error:
  × {x}
@zkat zkat linked a pull request May 13, 2023 that will close this issue
@zkat zkat closed this as completed in #262 May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant