From b718e6ff53156a0aae486e570ce7c9cb8a3b822a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 31 Jul 2020 16:59:22 +0200 Subject: upgrade: deno_lint, dprint, swc (#6928) This commit upgrades: deno_lint 0.1.20 dprint-plugin-typescript 0.25.0 swc_ecmascript 0.1.0 SWC is no longer reexported from dprint nor deno_lint. --- cli/doc/function.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/doc/function.rs') diff --git a/cli/doc/function.rs b/cli/doc/function.rs index ede8bdbbd..ab6430ec6 100644 --- a/cli/doc/function.rs +++ b/cli/doc/function.rs @@ -6,7 +6,6 @@ use super::ts_type::TsTypeDef; use super::ts_type_param::maybe_type_param_decl_to_type_param_defs; use super::ts_type_param::TsTypeParamDef; use super::ParamDef; -use crate::swc_ecma_ast; use serde::Serialize; #[derive(Debug, Serialize, Clone)] @@ -22,7 +21,7 @@ pub struct FunctionDef { pub fn function_to_function_def( doc_parser: &DocParser, - function: &swc_ecma_ast::Function, + function: &swc_ecmascript::ast::Function, ) -> FunctionDef { let mut params = vec![]; @@ -51,7 +50,7 @@ pub fn function_to_function_def( pub fn get_doc_for_fn_decl( doc_parser: &DocParser, - fn_decl: &swc_ecma_ast::FnDecl, + fn_decl: &swc_ecmascript::ast::FnDecl, ) -> (String, FunctionDef) { let name = fn_decl.ident.sym.to_string(); let fn_def = function_to_function_def(&doc_parser, &fn_decl.function); -- cgit v1.2.3