Skip to content

Commit

Permalink
refactor: fix clippy warnings and reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
edytapawlak committed Mar 29, 2024
1 parent d44215e commit ef76ce9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions oca/src/facade/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl Facade {

let _ = self.add_relations(oca_build.oca_bundle.clone());

self.build_models(&oca_build);
self.build_models(oca_build);

Ok(oca_build.oca_bundle.clone())
}
Expand All @@ -116,7 +116,7 @@ impl Facade {

self.build(&oca_build)
}

fn parse_and_check_base(
storage: &dyn DataStorage,
ocafile: String,
Expand Down Expand Up @@ -204,7 +204,7 @@ impl Facade {

fn build_cache(&self, oca_bundle: &OCABundle) {
let oca_bundle_cache_repo = OCABundleCacheRepo::new(self.connection());
let oca_bundle_cache_record = OCABundleCacheRecord::new(&oca_bundle);
let oca_bundle_cache_record = OCABundleCacheRecord::new(oca_bundle);
oca_bundle_cache_repo.insert(oca_bundle_cache_record);

let capture_base_cache_repo = CaptureBaseCacheRepo::new(self.connection());
Expand Down Expand Up @@ -295,7 +295,7 @@ impl Facade {
}

fn build_models(&mut self, oca_build: &OCABuild) {
let result_models = build_core_db_model(&oca_build);
let result_models = build_core_db_model(oca_build);
result_models.iter().for_each(|model| {
if let Some(command_model) = &model.command {
self.db
Expand Down

0 comments on commit ef76ce9

Please sign in to comment.