This commit is contained in:
hzlinyiyu 2024-02-23 10:06:55 +08:00
parent c3a0781e3e
commit 35a904e481
1 changed files with 19 additions and 24 deletions

View File

@ -34,29 +34,24 @@ libraries and such might not want.
### Table of Contents <!-- omit in toc --> ### Table of Contents <!-- omit in toc -->
- [`miette`](#miette) - [About](#about)
- [About](#about) - [Features](#features)
- [Features](#features) - [Installing](#installing)
- [Installing](#installing) - [Example](#example)
- [Example](#example) - [Using](#using)
- [Using](#using) - [... in libraries](#-in-libraries)
- [... in libraries](#-in-libraries) - [... in application code](#-in-application-code)
- [... in application code](#-in-application-code) - [... in `main()`](#-in-main)
- [... in `main()`](#-in-main) - [... diagnostic code URLs](#-diagnostic-code-urls)
- [... diagnostic code URLs](#-diagnostic-code-urls) - [... snippets](#-snippets)
- [... snippets](#-snippets) - [... multiple related errors](#-multiple-related-errors)
- [... help text](#-help-text) - [... delayed source code](#-delayed-source-code)
- [... severity level](#-severity-level) - [... handler options](#-handler-options)
- [... multiple related errors](#-multiple-related-errors) - [... dynamic diagnostics](#-dynamic-diagnostics)
- [... delayed source code](#-delayed-source-code) - [... syntax highlighting](#-syntax-highlighting)
- [... Diagnostic-based error sources.](#-diagnostic-based-error-sources) - [... collection of labels](#-collection-of-labels)
- [... handler options](#-handler-options) - [Acknowledgements](#acknowledgements)
- [... dynamic diagnostics](#-dynamic-diagnostics) - [License](#license)
- [... syntax highlighting](#-syntax-highlighting)
- [... collection of labels](#-collection-of-labels)
- [MSRV](#msrv)
- [Acknowledgements](#acknowledgements)
- [License](#license)
### Features ### Features
@ -475,7 +470,7 @@ use thiserror::Error;
#[derive(Debug, Diagnostic, Error)] #[derive(Debug, Diagnostic, Error)]
#[error("welp")] #[error("welp")]
#[diagnostic(severity("warning"))] #[diagnostic(severity(Warning))]
struct Foo; struct Foo;
``` ```