diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-09 02:50:22 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-09 02:50:22 -0500 |
commit | 4fc328e1dfb79a2cba14f603a5dd175d6029f30f (patch) | |
tree | 7fe35ec3af05933529932c25912b7f3ec20565ec /examples | |
parent | dd845e949ac59e08bf12d0fcac8b4069c5c7645c (diff) | |
download | textmode-4fc328e1dfb79a2cba14f603a5dd175d6029f30f.tar.gz textmode-4fc328e1dfb79a2cba14f603a5dd175d6029f30f.zip |
add an error type
Diffstat (limited to 'examples')
-rw-r--r-- | examples/async.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/async.rs b/examples/async.rs index af5ccb5..3ff4c92 100644 --- a/examples/async.rs +++ b/examples/async.rs @@ -1,6 +1,6 @@ use textmode::Textmode as _; -async fn run(tm: &mut textmode::Output) -> std::io::Result<()> { +async fn run(tm: &mut textmode::Output) -> textmode::Result<()> { tm.move_to(5, 5); tm.write_str("foo"); smol::Timer::after(std::time::Duration::from_secs(2)).await; |