mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
6300e820b4
commit
3d320fa96a
603 changed files with 1739 additions and 1648 deletions
2
third_party/blurmac/src/adapter.rs
vendored
2
third_party/blurmac/src/adapter.rs
vendored
|
@ -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 {
|
||||
|
|
2
third_party/blurmac/src/delegate.rs
vendored
2
third_party/blurmac/src/delegate.rs
vendored
|
@ -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::*;
|
||||
|
|
2
third_party/blurmac/src/device.rs
vendored
2
third_party/blurmac/src/device.rs
vendored
|
@ -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 {
|
||||
|
|
2
third_party/blurmac/src/framework.rs
vendored
2
third_party/blurmac/src/framework.rs
vendored
|
@ -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;
|
||||
|
|
|
@ -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 {
|
||||
|
|
2
third_party/blurmac/src/gatt_service.rs
vendored
2
third_party/blurmac/src/gatt_service.rs
vendored
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue