Skip to content

Commit 43cedd3

Browse files
committed
style(global): fix doctests to run with and without "advanced-queries"
Also remove "default" notation for "diesel_backend" as there is no default. closes #147
1 parent d56b152 commit 43cedd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/global.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ pub struct GenerationConfig<'a> {
384384
/// Diesel backend
385385
///
386386
/// For example:
387-
/// - `diesel::pg::Pg` (default)
387+
/// - `diesel::pg::Pg`
388388
/// - `diesel::sqlite::Sqlite`
389389
/// - `diesel::mysql::Mysql`
390390
/// - or, your custom diesel backend type (struct which implements `diesel::backend::Backend`)
@@ -396,12 +396,16 @@ pub struct GenerationConfig<'a> {
396396
/// GenerationConfig {
397397
/// // ... all required options
398398
/// # connection_type: String::default(),
399+
/// # #[cfg(feature = "advanced-queries")]
400+
/// # diesel_backend: "diesel::sqlite::Sqlite".to_string(),
399401
/// options: Default::default(),
400402
/// };
401403
/// // or
402404
/// GenerationConfig {
403405
/// // ... all required options
404406
/// # connection_type: String::default(),
407+
/// # #[cfg(feature = "advanced-queries")]
408+
/// # diesel_backend: "diesel::sqlite::Sqlite".to_string(),
405409
/// options: GenerationConfigOpts {
406410
/// ..Default::default()
407411
/// },

0 commit comments

Comments
 (0)