mirror of
https://github.com/denoland/deno.git
synced 2025-08-31 15:57:53 +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
|
@ -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]");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue