mirror of
https://github.com/starship/starship.git
synced 2026-06-23 02:05:51 +07:00
perf: Lazy load files from directory (#335)
Changes context to use `once_cell` to lazily evaluate directory listing on first use.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
use ansi_term::Color;
|
||||
use git2::Repository;
|
||||
use std::io;
|
||||
use std::process::Command;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
use ansi_term::Color;
|
||||
use git2::Repository;
|
||||
use std::fs::{self, File};
|
||||
use std::io;
|
||||
use std::process::Command;
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
use ansi_term::Color;
|
||||
use std::fs;
|
||||
use std::io;
|
||||
use std::path::Path;
|
||||
use tempfile::TempDir;
|
||||
|
||||
use crate::common::{self, TestCommand};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user