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

Commit a5a35deb authored by Chris Wailes's avatar Chris Wailes
Browse files

Fix warnings in preparation for Rust 1.54.0

This CL fixes several new warnings generated by rustc 1.54.0.

Bug: 194812675
Test: m rust
Change-Id: Id95294565f3dd3b611dc50ba12f694c9c442d485
parent f05210f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -90,7 +90,7 @@ impl IBinderRustNdkInteropTest for Service {
pub unsafe extern "C" fn rust_start_service(service_name: *const c_char) -> c_int {
pub unsafe extern "C" fn rust_start_service(service_name: *const c_char) -> c_int {
    let service_name = CStr::from_ptr(service_name).to_str().unwrap();
    let service_name = CStr::from_ptr(service_name).to_str().unwrap();
    let service = BnBinderRustNdkInteropTest::new_binder(Service, BinderFeatures::default());
    let service = BnBinderRustNdkInteropTest::new_binder(Service, BinderFeatures::default());
    match binder::add_service(&service_name, service.as_binder()) {
    match binder::add_service(service_name, service.as_binder()) {
        Ok(_) => StatusCode::OK as c_int,
        Ok(_) => StatusCode::OK as c_int,
        Err(e) => e as c_int,
        Err(e) => e as c_int,
    }
    }