chore: cargo fmt - turn on group_imports=StdExternalCrate (#26646)

This commit is contained in:
David Sherret 2024-12-31 12:13:39 -05:00 committed by GitHub
parent 88bd5f09f7
commit ac7b33a340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
298 changed files with 2160 additions and 1951 deletions

View file

@ -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);