Skip to content

Commit

Permalink
Fixing workflow checks
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Aug 28, 2024
1 parent 08ba4ed commit b924671
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ecosystem/python/parser/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl PythonParser {
impl PythonParser {
fn parse_library(&self, input: &std::path::Path, config: &ParserConfig) -> Result<Library> {
// This line replaces "-" with "_" in the file name
let input = input.with_file_name(input.file_name().unwrap().to_string_lossy().replace("-", "_").as_str().trim());
let input = input.with_file_name(input.file_name().unwrap().to_string_lossy().replace('-', "_").as_str().trim());
let input = input.as_path();
println!("Parsing library: {}", input.display());
let identifier = self.identifier_parser.parse(input, config)?;
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/rust/pyo3-importer/src/module/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl ModuleGenerator {
self.interface_generator.function_generator.generate_function(functions, function)?;
}

self.interface_generator.generate(&visitor, file)?;
self.interface_generator.generate(visitor, file)?;
Ok(())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl From<String> for SectionTemplate {
impl AddBranch<SectionTemplate> for SectionTemplate
{
fn add_branch(&mut self, branch: SectionTemplate) -> &mut SectionTemplate {
self.children.push(branch.into());
self.children.push(branch);
self
.children
.last_mut()
Expand Down
9 changes: 6 additions & 3 deletions ligen/traits/src/build/build_profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ impl Default for BuildProfile {
}
}

impl ToString for BuildProfile {
fn to_string(&self) -> String {
format!("{:#?}", self)
impl std::fmt::Display for BuildProfile {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
BuildProfile::Release => write!(f, "Release"),
BuildProfile::Debug => write!(f, "Debug"),
}
}
}

0 comments on commit b924671

Please sign in to comment.