Переглянути джерело

slice embedded in struct will not be optimized by interface{}

Tao Wen 9 роки тому
батько
коміт
a6673c983a
1 змінених файлів з 0 додано та 2 видалено
  1. 0 2
      feature_reflect_extension.go

+ 0 - 2
feature_reflect_extension.go

@@ -282,8 +282,6 @@ func createStructDescriptor(cfg *frozenConfig, typ reflect.Type, bindings []*Bin
 			}
 			}
 			fallthrough
 			fallthrough
 		case reflect.Map:
 		case reflect.Map:
-			fallthrough
-		case reflect.Slice:
 			onePtrOptimization = true
 			onePtrOptimization = true
 		}
 		}
 	}
 	}