mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-04-18 10:24:33 +00:00
Clarify where optional features should be enabled (#2706)
This commit is contained in:
@@ -60,7 +60,7 @@ pub fn quote_args<DB: DatabaseExt>(
|
||||
.ok_or_else(|| {
|
||||
if let Some(feature_gate) = <DB as DatabaseExt>::get_feature_gate(¶m_ty) {
|
||||
format!(
|
||||
"optional feature `{}` required for type {} of param #{}",
|
||||
"optional sqlx feature `{}` required for type {} of param #{}",
|
||||
feature_gate,
|
||||
param_ty,
|
||||
i + 1,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user