From 00d427a8b622b792289a05078be29b5cfbc8540a Mon Sep 17 00:00:00 2001 From: Tim van Elsloo Date: Sun, 15 Jan 2023 18:32:33 +0100 Subject: [PATCH] Fixed compiler warnings in new `litho-export` crate. --- litho-export/src/typescript/generator.rs | 2 -- litho-export/src/typescript/mod.rs | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/litho-export/src/typescript/generator.rs b/litho-export/src/typescript/generator.rs index 53baab2..698120e 100644 --- a/litho-export/src/typescript/generator.rs +++ b/litho-export/src/typescript/generator.rs @@ -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}; diff --git a/litho-export/src/typescript/mod.rs b/litho-export/src/typescript/mod.rs index 6acaf5f..01f2849 100644 --- a/litho-export/src/typescript/mod.rs +++ b/litho-export/src/typescript/mod.rs @@ -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; @@ -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"))?;