Remove incorrect/unused trait impl for Datasource
-use crate::configuration::preview_features::PreviewFeatures;
use datamodel_connector::{Connector, ConnectorCapabilities};
use serde::Serialize;
@@ -49,25 +48,3 @@ pub struct StringFromEnvVar {
pub from_env_var: Option<String>,
pub value: String,
}
-
-impl PreviewFeatures for Datasource {
- fn preview_features(&self) -> &Vec<String> {
- &self.preview_features
- }
-}
-
-impl PreviewFeatures for Option<&Datasource> {
- fn preview_features(&self) -> &Vec<String> {
- match self {
- Some(dat) => &dat.preview_features,
- _ => panic!(""),
- }
- }
-
- fn has_preview_feature(&self, feature: &str) -> bool {
- match self {
- Some(dat) => dat.has_preview_feature(feature),
- None => false,
- }
- }
-}
