Skip to content

Commit

Permalink
Try fixing some doctest errors
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Oct 31, 2021
1 parent 30814f0 commit fcf3ea9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/driver/sqlx_sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ impl SqlxSqliteConnector {

/// Add configuration options for the SQLite database
pub async fn connect(options: ConnectOptions) -> Result<DatabaseConnection, DbErr> {
let mut options = options;
let mut opt = options
.url
.parse::<SqliteConnectOptions>()
Expand Down
4 changes: 2 additions & 2 deletions src/entity/active_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ use std::fmt::Debug;
/// // The code snipped below does an UPDATE operation on a [ActiveValue]
/// // yielding the the SQL statement ` r#"UPDATE "fruit" SET "name" = 'Orange' WHERE "fruit"."id" = 1"# `
///
/// use crate::tests_cfg::{cake, fruit};
/// use crate::{entity::*, query::*, DbBackend};
/// use sea_orm::tests_cfg::{cake, fruit};
/// use sea_orm::{entity::*, query::*, DbBackend};
///
/// Update::one(fruit::ActiveModel {
/// id: ActiveValue::set(1),
Expand Down
3 changes: 1 addition & 2 deletions src/entity/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
/// ```
/// #[cfg(feature = "macros")]
///
/// # use crate::entity::prelude::*;
/// # use sea_orm_macros::*;
/// # use sea_orm::entity::prelude::*;
/// use sea_orm::ActiveModelBehavior;
/// use sea_orm::RelationDef;
/// use sea_orm::RelationTrait;
Expand Down

0 comments on commit fcf3ea9

Please sign in to comment.