From a990de90fe41456a23e58bd087d2f107d321f3a1 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 19 Jul 2024 16:37:58 +0400 Subject: Deleted vendor folder --- vendor/thiserror/tests/test_from.rs | 64 ------------------------------------- 1 file changed, 64 deletions(-) delete mode 100644 vendor/thiserror/tests/test_from.rs (limited to 'vendor/thiserror/tests/test_from.rs') diff --git a/vendor/thiserror/tests/test_from.rs b/vendor/thiserror/tests/test_from.rs deleted file mode 100644 index 51af40b..0000000 --- a/vendor/thiserror/tests/test_from.rs +++ /dev/null @@ -1,64 +0,0 @@ -#![allow(clippy::extra_unused_type_parameters)] - -use std::io; -use thiserror::Error; - -#[derive(Error, Debug)] -#[error("...")] -pub struct ErrorStruct { - #[from] - source: io::Error, -} - -#[derive(Error, Debug)] -#[error("...")] -pub struct ErrorStructOptional { - #[from] - source: Option, -} - -#[derive(Error, Debug)] -#[error("...")] -pub struct ErrorTuple(#[from] io::Error); - -#[derive(Error, Debug)] -#[error("...")] -pub struct ErrorTupleOptional(#[from] Option); - -#[derive(Error, Debug)] -#[error("...")] -pub enum ErrorEnum { - Test { - #[from] - source: io::Error, - }, -} - -#[derive(Error, Debug)] -#[error("...")] -pub enum ErrorEnumOptional { - Test { - #[from] - source: Option, - }, -} - -#[derive(Error, Debug)] -#[error("...")] -pub enum Many { - Any(#[from] anyhow::Error), - Io(#[from] io::Error), -} - -fn assert_impl>() {} - -#[test] -fn test_from() { - assert_impl::(); - assert_impl::(); - assert_impl::(); - assert_impl::(); - assert_impl::(); - assert_impl::(); - assert_impl::(); -} -- cgit v1.2.3