File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -47,27 +47,17 @@ use std::{
47
47
48
48
/// Helper trait used in [`StarlarkValue`] - has a single global implementation.
49
49
pub trait AsStarlarkValue < ' v > {
50
- fn as_starlark_value ( & self ) -> & dyn StarlarkValue < ' v > ;
51
50
fn as_dyn_any ( & self ) -> & dyn AnyLifetime < ' v > ;
52
51
fn as_debug ( & self ) -> & dyn Debug ;
53
-
54
- fn type_name ( & self ) -> & ' static str ;
55
52
}
56
53
57
54
impl < ' v , T : StarlarkValue < ' v > > AsStarlarkValue < ' v > for T {
58
- fn as_starlark_value ( & self ) -> & dyn StarlarkValue < ' v > {
59
- self
60
- }
61
55
fn as_dyn_any ( & self ) -> & dyn AnyLifetime < ' v > {
62
56
self
63
57
}
64
58
fn as_debug ( & self ) -> & dyn Debug {
65
59
self
66
60
}
67
-
68
- fn type_name ( & self ) -> & ' static str {
69
- std:: any:: type_name :: < T > ( )
70
- }
71
61
}
72
62
73
63
/// Called by the garbage collection, and must walk over every contained `Value` in the type.
You can’t perform that action at this time.
0 commit comments