You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "sarutak (via GitHub)" <gi...@apache.org> on 2023/08/09 20:57:21 UTC

[GitHub] [incubator-opendal] sarutak opened a new issue, #2835: Add clippy rule to avoid wrong usage of tempfile crate

sarutak opened a new issue, #2835:
URL: https://github.com/apache/incubator-opendal/issues/2835

   I added `tempfile` crate in #2823 .
   One pitfall is the usage of `TempDir::into_path`.
   According to the [API doc](https://docs.rs/tempfile/latest/tempfile/struct.TempDir.html#method.into_path), `TempDir::into_path` leads the corresponding temporary directory not deleted automatically.
   To avoid resource leak I proposes to add a clippy rule.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-opendal] sarutak closed issue #2835: Add clippy rule to avoid wrong usage of tempfile crate

Posted by "sarutak (via GitHub)" <gi...@apache.org>.
sarutak closed issue #2835: Add clippy rule to avoid wrong usage of tempfile crate
URL: https://github.com/apache/incubator-opendal/issues/2835


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org