Skip to content

Commit

Permalink
style(lib): fix clippy warning added by #126
Browse files Browse the repository at this point in the history
  • Loading branch information
hasezoey committed Jan 16, 2024
1 parent 05d6070 commit b91c1ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ use std::collections::HashMap;
use std::fmt::Display;
use std::path::{Path, PathBuf};

use crate::error::ErrorEnum;

/// Available options for string types
#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub enum StringType {
Expand Down Expand Up @@ -370,6 +368,8 @@ impl GenerationConfig<'_> {

#[cfg(feature = "advanced-queries")]
pub fn validate_config(config: &GenerationConfig) -> Result<()> {
use crate::error::ErrorEnum;

const VALID_BACKENDS: [&str; 3] = [
"diesel::pg::Pg",
"diesel::sqlite::Sqlite",
Expand Down

0 comments on commit b91c1ee

Please sign in to comment.