mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
chore: cargo fmt - turn on group_imports=StdExternalCrate (#26646)
This commit is contained in:
parent
88bd5f09f7
commit
ac7b33a340
298 changed files with 2160 additions and 1951 deletions
|
@ -1,11 +1,12 @@
|
|||
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
||||
//! This mod provides DenoError to unify errors across Deno.
|
||||
use std::fmt::Write as _;
|
||||
|
||||
use color_print::cformat;
|
||||
use color_print::cstr;
|
||||
use deno_core::error::format_frame;
|
||||
use deno_core::error::JsError;
|
||||
use deno_terminal::colors;
|
||||
use std::fmt::Write as _;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
struct ErrorReference<'a> {
|
||||
|
@ -490,9 +491,10 @@ pub fn format_js_error(js_error: &JsError) -> String {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use test_util::strip_ansi_codes;
|
||||
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn test_format_none_source_line() {
|
||||
let actual = format_maybe_source_line(None, None, false, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue