diff options
| author | 2023-03-13 19:53:01 +0000 | |
|---|---|---|
| committer | 2023-03-13 19:53:01 +0000 | |
| commit | fa93e33610cde38d0046e9db5b639af08d555d95 (patch) | |
| tree | 9dfda88f4af83b025fcc0d9bcd37f3459d6adf97 | |
| parent | 03469740683d5323bcc7cd6f93062790a45eea7a (diff) | |
| parent | ab53d0adc390ad0b13b98fcb5ef2c2dbbeb2bf97 (diff) | |
Merge "Change request for Rust v1.68.0"
| -rw-r--r-- | libs/binder/rust/src/binder.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/binder/rust/src/binder.rs b/libs/binder/rust/src/binder.rs index 976f54d36f..d0e35de3f7 100644 --- a/libs/binder/rust/src/binder.rs +++ b/libs/binder/rust/src/binder.rs @@ -100,22 +100,17 @@ where /// An interface can promise to be a stable vendor interface ([`Vintf`]), or /// makes no stability guarantees ([`Local`]). [`Local`] is /// currently the default stability. -#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Default)] pub enum Stability { /// Default stability, visible to other modules in the same compilation /// context (e.g. modules on system.img) + #[default] Local, /// A Vendor Interface Object, which promises to be stable Vintf, } -impl Default for Stability { - fn default() -> Self { - Stability::Local - } -} - impl From<Stability> for i32 { fn from(stability: Stability) -> i32 { use Stability::*; |