Skip to content
Snippets Groups Projects
Verified Commit 78d07d41 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

FileDescriptor is now must_use

parent 613e5b45
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ pub struct FileDescription {
/// A file descriptor
#[derive(Clone, Debug)]
#[must_use = "File descriptors must be closed"]
pub struct FileDescriptor {
/// Corresponding file description
pub description: Arc<RwLock<FileDescription>>,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment