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

@ -7,9 +7,8 @@ use std::time::Duration;
use deno_terminal::colors;
use crate::util::display::human_download_size;
use super::ProgressMessagePrompt;
use crate::util::display::human_download_size;
#[derive(Clone)]
pub struct ProgressDataDisplayEntry {
@ -224,11 +223,13 @@ fn get_elapsed_text(elapsed: Duration) -> String {
#[cfg(test)]
mod test {
use super::*;
use pretty_assertions::assert_eq;
use std::time::Duration;
use pretty_assertions::assert_eq;
use test_util::assert_contains;
use super::*;
#[test]
fn should_get_elapsed_text() {
assert_eq!(get_elapsed_text(Duration::from_secs(1)), "[00:01]");