Bladeren bron

Pod5sRuns Err handl

Thomas 3 maanden geleden
bovenliggende
commit
1b19622b32
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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())