This commit is contained in:
Timon 2023-01-28 10:54:47 +01:00
parent ee1e25205b
commit a73a5538db

View File

@ -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}"
),
)); ));
} }