mirror of
https://github.com/crossterm-rs/crossterm.git
synced 2025-05-05 15:32:57 +00:00
fmtr
This commit is contained in:
parent
ee1e25205b
commit
a73a5538db
@ -134,18 +134,14 @@ impl ScreenBufferCursor {
|
|||||||
if x < 0 {
|
if x < 0 {
|
||||||
return Err(io::Error::new(
|
return Err(io::Error::new(
|
||||||
io::ErrorKind::Other,
|
io::ErrorKind::Other,
|
||||||
format!(
|
format!("Argument Out of Range Exception when setting cursor position to X: {x}"),
|
||||||
"Argument Out of Range Exception when setting cursor position to X: {x}"
|
|
||||||
),
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if y < 0 {
|
if y < 0 {
|
||||||
return Err(io::Error::new(
|
return Err(io::Error::new(
|
||||||
io::ErrorKind::Other,
|
io::ErrorKind::Other,
|
||||||
format!(
|
format!("Argument Out of Range Exception when setting cursor position to Y: {y}"),
|
||||||
"Argument Out of Range Exception when setting cursor position to Y: {y}"
|
|
||||||
),
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user