From 197614f46aec918ea20f5dfc6cb8e883e3225e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Tue, 12 Aug 2025 15:09:59 +0000 Subject: [PATCH] Fix warning Newer versions of rust complain about hiding an elided lifetime. --- src/opts/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opts/mod.rs b/src/opts/mod.rs index 1923756..277dcea 100644 --- a/src/opts/mod.rs +++ b/src/opts/mod.rs @@ -149,7 +149,7 @@ pub enum PathOrBuf<'a> { impl<'a> PathOrBuf<'a> { /// Will either read data from disk or return the buffered data. - pub async fn read(&self) -> io::Result> { + pub async fn read(&self) -> io::Result> { match self { PathOrBuf::Path(x) => tokio::fs::read(x.as_ref()).await.map(Cow::Owned), PathOrBuf::Buf(x) => Ok(Cow::Borrowed(x.as_ref())),