Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 597a34da authored by Martin Geisler's avatar Martin Geisler Committed by Automerger Merge Worker
Browse files

Merge "PDL: apply ‘rustfmt’ to the generated preamble code" am: c1fe5e0e am:...

Merge "PDL: apply ‘rustfmt’ to the generated preamble code" am: c1fe5e0e am: facbbbca am: 74ffdb3c

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2101696



Change-Id: Ie6c04d4d9e89db03322c6ec4665251905c6dc784
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 2911d4d6 74ffdb3c
Loading
Loading
Loading
Loading
+2 −12
Original line number Original line Diff line number Diff line
@@ -46,21 +46,11 @@ fn generate_preamble(path: &Path) -> Result<String> {
            #[error("{field} was {value:x}, which is not known")]
            #[error("{field} was {value:x}, which is not known")]
            ConstraintOutOfBounds { field: String, value: u64 },
            ConstraintOutOfBounds { field: String, value: u64 },
            #[error("when parsing {obj}.{field} needed length of {wanted} but got {got}")]
            #[error("when parsing {obj}.{field} needed length of {wanted} but got {got}")]
            InvalidLengthError {
            InvalidLengthError { obj: String, field: String, wanted: usize, got: usize },
                obj: String,
                field: String,
                wanted: usize,
                got: usize,
            },
            #[error("Due to size restrictions a struct could not be parsed.")]
            #[error("Due to size restrictions a struct could not be parsed.")]
            ImpossibleStructError,
            ImpossibleStructError,
            #[error("when parsing field {obj}.{field}, {value} is not a valid {type_} value")]
            #[error("when parsing field {obj}.{field}, {value} is not a valid {type_} value")]
            InvalidEnumValueError {
            InvalidEnumValueError { obj: String, field: String, value: u64, type_: String },
                obj: String,
                field: String,
                value: u64,
                type_: String,
            },
        }
        }
    });
    });