Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sn99 committed Nov 26, 2019
1 parent fd3c7a2 commit 74372da
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 102 deletions.
2 changes: 1 addition & 1 deletion src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct PrototypeAST {
pub args: Vec<String>,
}
impl PrototypeAST {
pub fn getName(&self) -> String {
pub fn get_name(&self) -> String {
self.name.clone()
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/gen.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
use crate::ast::*;
use crate::{lexer, parser};

use libc;

extern "C" {}
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub mod ast;
pub mod gen;
pub mod lexer;
pub mod parser;
pub mod parser;
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fn main() -> Result<(), String> {
}

let source_file = &args[1];
let output_file = &args[2];
let _output_file = &args[2];

let contents = fs::read_to_string(source_file).expect("Can't read file");

Expand Down
Loading

0 comments on commit 74372da

Please sign in to comment.