Skip to content

rust: simplify file operations by removing FileOpener#617

Merged
wedsonaf merged 1 commit intoRust-for-Linux:rustfrom
wedsonaf:file-opener
Jan 12, 2022
Merged

rust: simplify file operations by removing FileOpener#617
wedsonaf merged 1 commit intoRust-for-Linux:rustfrom
wedsonaf:file-opener

Conversation

@wedsonaf
Copy link
Copy Markdown

It is currently used to allow a single FileOperations implementation
to be shared by multiple FileOpener instances. But Binder is the only
intended user I've seen so far.

So we have the extra complexity because of a single exceptional case.
This commit simplifies things for the majority: they just need to
implement FileOperations::open.

Signed-off-by: Wedson Almeida Filho wedsonaf@google.com

It is currently used to allow a single `FileOperations` implementation
to be shared by multiple `FileOpener` instances. But Binder is the only
intended user I've seen so far.

So we have the extra complexity because of a single exceptional case.
This commit simplifies things for the majority: they just need to
implement `FileOperations::open`.

Signed-off-by: Wedson Almeida Filho <wedsonaf@google.com>
@wedsonaf wedsonaf merged commit cd969b5 into Rust-for-Linux:rust Jan 12, 2022
@wedsonaf wedsonaf deleted the file-opener branch January 12, 2022 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant