diff options
author | Maxim <59533214+biryukovmaxim@users.noreply.github.com> | 2022-02-11 22:04:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 14:04:31 -0500 |
commit | 65de5fb4658e92f0730901b8b083af375050bd64 (patch) | |
tree | f1b410613c31fcc6095e394ce59c10b447d01cab /cli/tools/fmt.rs | |
parent | 2fa0096821cd04334210fcae6f54f85d304dc17a (diff) |
refactor: use `Arc` instead of making copies of `Flags` struct (#13610)
Diffstat (limited to 'cli/tools/fmt.rs')
-rw-r--r-- | cli/tools/fmt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/tools/fmt.rs b/cli/tools/fmt.rs index a0ab3ea56..45cf69b86 100644 --- a/cli/tools/fmt.rs +++ b/cli/tools/fmt.rs @@ -39,7 +39,7 @@ use std::sync::{Arc, Mutex}; /// Format JavaScript/TypeScript files. pub async fn format( - flags: Flags, + flags: &Flags, fmt_flags: FmtFlags, maybe_fmt_config: Option<FmtConfig>, ) -> Result<(), AnyError> { |