From 35a904e481b6658490d7c97157c856463835d20b Mon Sep 17 00:00:00 2001 From: hzlinyiyu Date: Fri, 23 Feb 2024 10:06:55 +0800 Subject: [PATCH] fix --- README.md | 43 +++++++++++++++++++------------------------ 1 file changed, 19 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index ef896e3..cb5f4fe 100644 --- a/README.md +++ b/README.md @@ -34,29 +34,24 @@ libraries and such might not want. ### Table of Contents -- [`miette`](#miette) - - [About](#about) - - [Features](#features) - - [Installing](#installing) - - [Example](#example) - - [Using](#using) - - [... in libraries](#-in-libraries) - - [... in application code](#-in-application-code) - - [... in `main()`](#-in-main) - - [... diagnostic code URLs](#-diagnostic-code-urls) - - [... snippets](#-snippets) - - [... help text](#-help-text) - - [... severity level](#-severity-level) - - [... multiple related errors](#-multiple-related-errors) - - [... delayed source code](#-delayed-source-code) - - [... Diagnostic-based error sources.](#-diagnostic-based-error-sources) - - [... handler options](#-handler-options) - - [... dynamic diagnostics](#-dynamic-diagnostics) - - [... syntax highlighting](#-syntax-highlighting) - - [... collection of labels](#-collection-of-labels) - - [MSRV](#msrv) - - [Acknowledgements](#acknowledgements) - - [License](#license) +- [About](#about) +- [Features](#features) +- [Installing](#installing) +- [Example](#example) +- [Using](#using) + - [... in libraries](#-in-libraries) + - [... in application code](#-in-application-code) + - [... in `main()`](#-in-main) + - [... diagnostic code URLs](#-diagnostic-code-urls) + - [... snippets](#-snippets) + - [... multiple related errors](#-multiple-related-errors) + - [... delayed source code](#-delayed-source-code) + - [... handler options](#-handler-options) + - [... dynamic diagnostics](#-dynamic-diagnostics) + - [... syntax highlighting](#-syntax-highlighting) + - [... collection of labels](#-collection-of-labels) +- [Acknowledgements](#acknowledgements) +- [License](#license) ### Features @@ -475,7 +470,7 @@ use thiserror::Error; #[derive(Debug, Diagnostic, Error)] #[error("welp")] -#[diagnostic(severity("warning"))] +#[diagnostic(severity(Warning))] struct Foo; ```