Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
wkarwacki committed Sep 23, 2024
1 parent 6b13e3a commit 3d25155
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/lib/gen/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub(crate) trait Gen: DynClone + Send + Sync {
handlebars: &Handlebars,
pkg: &Pkg,
context: &Context,
templates: &HashMap<String, String>
templates: &HashMap<String, String>,
) -> HashMap<PathBuf, String>;
fn src_dir(&self) -> PathBuf;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/open_api/open_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl OpenApi {
.iter()
.map(|(name, schema)| (name.clone().clone(), schema.def(name.clone(), context)))
.collect(),
use_namespace: Default::default()
use_namespace: Default::default(),
}
}

Expand Down
5 changes: 2 additions & 3 deletions src/lib/pkg.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use crate::lib::{def::Def, op::Op};
use serde::{Deserialize, Serialize};
use std::{collections::HashMap, fmt::Debug};
use std::{ops::Not};
use std::{collections::HashMap, fmt::Debug, ops::Not};

#[derive(Debug, Deserialize, Eq, PartialEq, Serialize)]
pub(crate) struct Pkg {
Expand All @@ -13,5 +12,5 @@ pub(crate) struct Pkg {
pub defs: HashMap<String, Def>,
#[serde(default)]
#[serde(skip_serializing_if = "<&bool>::not")]
pub use_namespace: bool
pub use_namespace: bool,
}

0 comments on commit 3d25155

Please sign in to comment.