Clarify where optional features should be enabled (#2706)

This commit is contained in:
kryptan
2023-09-22 06:49:51 +06:00
committed by GitHub
parent c2c2b9a7ed
commit ca608a964e
6 changed files with 19 additions and 19 deletions

View File

@@ -60,7 +60,7 @@ pub fn quote_args<DB: DatabaseExt>(
.ok_or_else(|| {
if let Some(feature_gate) = <DB as DatabaseExt>::get_feature_gate(&param_ty) {
format!(
"optional feature `{}` required for type {} of param #{}",
"optional sqlx feature `{}` required for type {} of param #{}",
feature_gate,
param_ty,
i + 1,

View File

@@ -227,7 +227,7 @@ fn get_column_type<DB: DatabaseExt>(i: usize, column: &DB::Column) -> TokenStrea
let message =
if let Some(feature_gate) = <DB as DatabaseExt>::get_feature_gate(&type_info) {
format!(
"optional feature `{feat}` required for type {ty} of {col}",
"optional sqlx feature `{feat}` required for type {ty} of {col}",
ty = &type_info,
feat = feature_gate,
col = DisplayColumn {