mirror of https://github.com/astral-sh/uv
Bump MSRV to 1.88 (#15935)
And bump the `rust-toolchain.toml` to `1.90`. Per our versioning policy.
This commit is contained in:
parent
4c2d9e19b0
commit
0889d53c25
|
|
@ -12,7 +12,7 @@ resolver = "2"
|
|||
|
||||
[workspace.package]
|
||||
edition = "2024"
|
||||
rust-version = "1.87"
|
||||
rust-version = "1.88"
|
||||
homepage = "https://pypi.org/project/uv/"
|
||||
documentation = "https://pypi.org/project/uv/"
|
||||
repository = "https://github.com/astral-sh/uv"
|
||||
|
|
|
|||
|
|
@ -150,7 +150,7 @@ pub fn input(prompt: &str, term: &Term) -> std::io::Result<String> {
|
|||
chars.remove(position);
|
||||
let line_size = term.size().1 as usize;
|
||||
// Case we want to delete last char of a line so the cursor is at the beginning of the next line
|
||||
if (position + prompt_len) % (line_size - 1) == 0 {
|
||||
if (position + prompt_len).is_multiple_of(line_size - 1) {
|
||||
term.clear_line()?;
|
||||
term.move_cursor_up(1)?;
|
||||
term.move_cursor_right(line_size + 1)?;
|
||||
|
|
@ -183,7 +183,7 @@ pub fn input(prompt: &str, term: &Term) -> std::io::Result<String> {
|
|||
term.flush()?;
|
||||
}
|
||||
Key::ArrowLeft if position > 0 => {
|
||||
if (position + prompt_len) % term.size().1 as usize == 0 {
|
||||
if (position + prompt_len).is_multiple_of(term.size().1 as usize) {
|
||||
term.move_cursor_up(1)?;
|
||||
term.move_cursor_right(term.size().1 as usize)?;
|
||||
} else {
|
||||
|
|
@ -193,7 +193,7 @@ pub fn input(prompt: &str, term: &Term) -> std::io::Result<String> {
|
|||
term.flush()?;
|
||||
}
|
||||
Key::ArrowRight if position < chars.len() => {
|
||||
if (position + prompt_len) % (term.size().1 as usize - 1) == 0 {
|
||||
if (position + prompt_len).is_multiple_of(term.size().1 as usize - 1) {
|
||||
term.move_cursor_down(1)?;
|
||||
term.move_cursor_left(term.size().1 as usize)?;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
[toolchain]
|
||||
channel = "1.89"
|
||||
channel = "1.90"
|
||||
|
|
|
|||
Loading…
Reference in New Issue