diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-10-21 22:56:20 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-21 22:56:20 +0400 |
commit | 80d4daccc307622f8e604af4f36ac89ecccf5db7 (patch) | |
tree | d63c17a09337bb044543c2ec83302d85ffeb5cbf /alacritty/src/cli.rs | |
parent | 6071a7bf35cfd99be8ba70f479f188b7370cda6f (diff) | |
download | r-alacritty-80d4daccc307622f8e604af4f36ac89ecccf5db7.tar.gz r-alacritty-80d4daccc307622f8e604af4f36ac89ecccf5db7.tar.bz2 r-alacritty-80d4daccc307622f8e604af4f36ac89ecccf5db7.zip |
Update winit to 0.29.2 and copypasta to 0.10.0
Fixes #7236.
Fixes #7201.
Fixes #7146.
Fixes #6848.
Fixes #3601.
Fixes #3108.
Fixes #2453.
Diffstat (limited to 'alacritty/src/cli.rs')
-rw-r--r-- | alacritty/src/cli.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/alacritty/src/cli.rs b/alacritty/src/cli.rs index d2982bde..c9890b9b 100644 --- a/alacritty/src/cli.rs +++ b/alacritty/src/cli.rs @@ -1,5 +1,4 @@ use std::cmp::max; -use std::os::raw::c_ulong; use std::path::PathBuf; use clap::{ArgAction, Args, Parser, Subcommand, ValueHint}; @@ -149,10 +148,10 @@ fn parse_class(input: &str) -> Result<Class, String> { } /// Convert to hex if possible, else decimal -fn parse_hex_or_decimal(input: &str) -> Option<c_ulong> { +fn parse_hex_or_decimal(input: &str) -> Option<u32> { input .strip_prefix("0x") - .and_then(|value| c_ulong::from_str_radix(value, 16).ok()) + .and_then(|value| u32::from_str_radix(value, 16).ok()) .or_else(|| input.parse().ok()) } |