Quellcode durchsuchen

Pod5sRuns Err handl

Thomas vor 3 Monaten
Ursprung
Commit
1b19622b32
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/collection/pod5.rs

+ 1 - 1
src/collection/pod5.rs

@@ -43,7 +43,7 @@ impl Pod5 {
     ///
     /// This loads the metadata using `Pod5Info::from_pod5` and fills the
     /// corresponding fields in `Pod5`.
-    pub fn from_path<P: AsRef<Path>>(path: P) -> std::io::Result<Self> {
+    pub fn from_path<P: AsRef<Path>>(path: P) -> anyhow::Result<Self> {
         let path_ref = path.as_ref();
         let path_str = path_ref.to_str().ok_or_else(|| {
             anyhow::anyhow!("Path contains invalid UTF-8: {}", path_ref.display())