File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -1123,15 +1123,6 @@ impl Json {
11231123 }
11241124}
11251125
1126- // NOTE(stage0): remove impl after a snapshot
1127- #[ cfg( stage0) ]
1128- impl < ' a > ops:: Index < & ' a str , Json > for Json {
1129- fn index ( & self , idx : & & str ) -> & Json {
1130- self . find ( * idx) . unwrap ( )
1131- }
1132- }
1133-
1134- #[ cfg( not( stage0) ) ] // NOTE(stage0): remove cfg after a snapshot
11351126impl < ' a > ops:: Index < & ' a str > for Json {
11361127 type Output = Json ;
11371128
@@ -1140,18 +1131,6 @@ impl<'a> ops::Index<&'a str> for Json {
11401131 }
11411132}
11421133
1143- // NOTE(stage0): remove impl after a snapshot
1144- #[ cfg( stage0) ]
1145- impl ops:: Index < uint , Json > for Json {
1146- fn index < ' a > ( & ' a self , idx : & uint ) -> & ' a Json {
1147- match self {
1148- & Json :: Array ( ref v) => v. index ( idx) ,
1149- _ => panic ! ( "can only index Json with uint if it is an array" )
1150- }
1151- }
1152- }
1153-
1154- #[ cfg( not( stage0) ) ] // NOTE(stage0): remove cfg after a snapshot
11551134impl ops:: Index < uint > for Json {
11561135 type Output = Json ;
11571136
You can’t perform that action at this time.
0 commit comments