mirror of
https://github.com/zed-industries/zed.git
synced 2026-06-01 03:14:56 +07:00
Self-Review Checklist: - [ ] I've reviewed my own diff for quality, security, and reliability - [ ] Unsafe blocks (if any) have justifying comments - [ ] The content is consistent with the [UI/UX checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist) - [ ] Tests cover the new/changed behavior - [ ] Performance impact has been considered and is acceptable Closes #ISSUE Release Notes: - N/A or Added/Fixed/Improved ...
This commit is contained in:
parent
c19eaab7fa
commit
8681fd713e
1 changed files with 1 additions and 5 deletions
|
|
@ -127,12 +127,8 @@ pub fn os_version() -> String {
|
|||
"test binary".to_owned()
|
||||
}
|
||||
target_os = "macos" => {
|
||||
#[cfg(target_os = "macos")]
|
||||
static MACOS_VERSION_REGEX: LazyLock<Regex> = LazyLock::new(|| {
|
||||
let regex_compilation = std::time::Instant::now();
|
||||
let r = Regex::new(r"(\s*\(Build [^)]*[0-9]\))").unwrap();
|
||||
dbg!(regex_compilation.elapsed());
|
||||
r
|
||||
Regex::new(r"(\s*\(Build [^)]*[0-9]\))").unwrap()
|
||||
});
|
||||
use objc2_foundation::NSProcessInfo;
|
||||
let process_info = NSProcessInfo::processInfo();
|
||||
|
|
|
|||
Loading…
Reference in a new issue