mirror of
https://git.intege.rs/xlib/anything
synced 2025-12-05 20:35:02 +00:00
fix release
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use std::fs::File;
|
||||
use anything::{Anything, Nothing};
|
||||
|
||||
pub fn func_1() -> Result<(),Anything> {
|
||||
@@ -15,9 +16,10 @@ pub fn func_3() -> Result<(),Nothing> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn func_4() -> Anything {
|
||||
let a= std::io::Error::last_os_error();
|
||||
Anything::from(a)
|
||||
fn func_4() -> Result<(), Anything> {
|
||||
let _ = Anything::from(File::open("afsfasfd").unwrap_err());
|
||||
let _ = File::open("afsfasfd")?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn func_5() -> Result<(), Anything> {
|
||||
|
||||
Reference in New Issue
Block a user