Update rustfmt to the 2024 style edition (#35764)

* Use 2024 style edition

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Reformat all code

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2025-03-03 12:26:53 +01:00 committed by GitHub
parent 6300e820b4
commit 3d320fa96a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
603 changed files with 1739 additions and 1648 deletions

View file

@ -11,7 +11,7 @@ use std::os::raw::c_int;
use delegate::bm;
use framework::{cb, io, ns};
use objc::runtime::{Object, YES};
use utils::{nsx, NOT_SUPPORTED_ERROR};
use utils::{NOT_SUPPORTED_ERROR, nsx};
#[derive(Clone, Debug)]
pub struct BluetoothAdapter {

View file

@ -11,7 +11,7 @@ use std::sync::Once;
use framework::{cb, nil, ns};
use objc::declare::ClassDecl;
use objc::runtime::{Class, Object, Protocol, Sel};
use utils::{cbx, nsx, wait, NO_PERIPHERAL_FOUND};
use utils::{NO_PERIPHERAL_FOUND, cbx, nsx, wait};
pub mod bm {
use super::*;

View file

@ -13,7 +13,7 @@ use adapter::BluetoothAdapter;
use delegate::{bm, bmx};
use framework::{cb, nil, ns};
use objc::runtime::Object;
use utils::{cbx, nsx, wait, NOT_SUPPORTED_ERROR, NO_PERIPHERAL_FOUND};
use utils::{NO_PERIPHERAL_FOUND, NOT_SUPPORTED_ERROR, cbx, nsx, wait};
#[derive(Clone, Debug)]
pub struct BluetoothDevice {

View file

@ -7,7 +7,7 @@
use std::os::raw::{c_char, c_int, c_uint};
use objc::runtime::{Class, Object, BOOL};
use objc::runtime::{BOOL, Class, Object};
#[allow(non_upper_case_globals)]
pub const nil: *mut Object = 0 as *mut Object;

View file

@ -13,8 +13,8 @@ use std::sync::Arc;
use delegate::bmx;
use framework::{cb, nil, ns};
use gatt_service::BluetoothGATTService;
use objc::runtime::{Object, NO, YES};
use utils::{cbx, wait, NOT_SUPPORTED_ERROR, NO_CHARACTERISTIC_FOUND};
use objc::runtime::{NO, Object, YES};
use utils::{NO_CHARACTERISTIC_FOUND, NOT_SUPPORTED_ERROR, cbx, wait};
#[derive(Clone, Debug)]
pub struct BluetoothGATTCharacteristic {

View file

@ -12,7 +12,7 @@ use delegate::bmx;
use device::BluetoothDevice;
use framework::{cb, nil, ns};
use objc::runtime::Object;
use utils::{cbx, wait, NO_SERVICE_FOUND};
use utils::{NO_SERVICE_FOUND, cbx, wait};
#[derive(Clone, Debug)]
pub struct BluetoothGATTService {