Skip to content

Commit

Permalink
Fixed compiler warnings in new litho-export crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
cutsoy committed Jan 15, 2023
1 parent c24a356 commit 00d427a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions litho-export/src/typescript/generator.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
use std::borrow::Borrow;
use std::collections::HashMap;
use std::hash::Hash;
use std::path::Path;

use litho_language::ast::{Type, TypeDefinition};
use litho_language::lex::{Name, SourceId};
use litho_types::Database;
use serde::Deserialize;
use sourcemap::Error;

use super::{LineIndex, SourceMapped};

Expand Down
4 changes: 1 addition & 3 deletions litho-export/src/typescript/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ use std::collections::HashMap;
use std::hash::Hash;
use std::path::Path;

use litho_language::ast::{Type, TypeDefinition};
use litho_language::lex::SourceId;
use litho_types::Database;
use serde::Deserialize;
use sourcemap::Error;

mod generator;
Expand Down Expand Up @@ -41,7 +39,7 @@ where
.map(|(id, (path, text))| (id, (path, LineIndex::new(text))))
.collect();

let mut generator = Generator::new(database, &source_map);
let generator = Generator::new(database, &source_map);

generator.js.write(path.with_extension("js"))?;
generator.dts.write(path.with_extension("d.ts"))?;
Expand Down

0 comments on commit 00d427a

Please sign in to comment.