From 35d576f540005167eb84d11bf08c4978484742e1 Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 3 Sep 2019 02:13:41 +0200 Subject: [PATCH] Remove use of specialization --- src/lib.rs | 1 - src/object/types.rs | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 7a82741199..2e9b8fb061 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,4 @@ #![feature(generators)] -#![feature(specialization)] #![feature(proc_macro_hygiene)] #[macro_use] diff --git a/src/object/types.rs b/src/object/types.rs index 913c43358a..8dca43d878 100644 --- a/src/object/types.rs +++ b/src/object/types.rs @@ -5,16 +5,6 @@ pub trait ExtractType: Sized { fn extract(value: &Tagged) -> Result; } -impl ExtractType for T { - default fn extract(_value: &Tagged) -> Result { - let name = std::any::type_name::(); - Err(ShellError::unimplemented(format!( - " ExtractType for {}", - name - ))) - } -} - impl ExtractType for Tagged { fn extract(value: &Tagged) -> Result, ShellError> { let name = std::any::type_name::();