Skip to content

Commit

Permalink
Revert unnecessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
ggiraldez committed Oct 7, 2024
1 parent 96c0c2b commit 0eafae0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/codegen/runtime/generator/src/bindings/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
use std::collections::BTreeSet;
use std::rc::Rc;

use anyhow::Result;
use codegen_language_definition::model::Language;
use codegen_language_definition::model;
use infra_utils::codegen::CodegenFileSystem;
use infra_utils::paths::PathExtensions;
use semver::Version;
Expand All @@ -16,7 +15,7 @@ pub struct BindingsModel {
}

impl BindingsModel {
pub fn from_language(language: &Rc<Language>) -> Result<Self> {
pub fn from_language(language: &model::Language) -> Result<Self> {
// We use `CodegenFileSystem` here to ensure the rules are rebuilt if the rules file changes
let binding_rules_dir = language.binding_rules_file.unwrap_parent();
let mut fs = CodegenFileSystem::new(binding_rules_dir)?;
Expand Down

0 comments on commit 0eafae0

Please sign in to comment.