Skip to content
Myr

Remove `lazy_static` from dependencies

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Shun Sakai · committed by David Peter · parent f32060b · Browse files · 4 files+6 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

4 files+6 added−10 removed

  • other:+6 added−10 removed

4 files+6 added−10 removed

modified:src/exec/mod.rs+3 added-4 removed
8 unmodified lines
9use std::process::{Command, Stdio};10use std::sync::{Arc, Mutex};1112use anyhow::{anyhow, Result};13use lazy_static::lazy_static;13use once_cell::sync::Lazy;14use regex::Regex;1516use crate::exit_codes::ExitCode;17use crate::filesystem::strip_current_dir;
53 unmodified lines
71 where72 I: IntoIterator<Item = S>,73 S: AsRef<str>,74 {75 lazy_static! {76 static ref PLACEHOLDER_PATTERN: Regex = Regex::new(r"\{(/?\.?|//)\}").unwrap();77 }75 static PLACEHOLDER_PATTERN: Lazy<Regex> =76 Lazy::new(|| Regex::new(r"\{(/?\.?|//)\}").unwrap());7778 let mut args = Vec::new();79 let mut has_placeholder = false;80
381 unmodified lines
modified:src/filter/size.rs+3 added-4 removed
1use lazy_static::lazy_static;1use once_cell::sync::Lazy;2use regex::Regex;34lazy_static! {5 static ref SIZE_CAPTURES: Regex = Regex::new(r"(?i)^([+-]?)(\d+)(b|[kmgt]i?b?)$").unwrap();6}4static SIZE_CAPTURES: Lazy<Regex> =5 Lazy::new(|| Regex::new(r"(?i)^([+-]?)(\d+)(b|[kmgt]i?b?)$").unwrap());67#[derive(Clone, Copy, Debug, PartialEq)]8pub enum SizeFilter {9 Max(u64),
202 unmodified lines
modified:Cargo.lock-1 removed
170 unmodified lines
171 "globset",172 "humantime",173 "ignore",174 "jemallocator",175 "lazy_static",175 "libc",176 "lscolors",177 "nix",178 "normpath",
489 unmodified lines
modified:Cargo.toml-1 removed