Skip to content

Commit fb90650

Browse files
authored
chore: add group_imports format rule (#1637)
1 parent 07d7ba3 commit fb90650

152 files changed

Lines changed: 433 additions & 370 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

crates/devolutions-agent-shared/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use std::env;
1111

1212
use camino::Utf8PathBuf;
1313
use cfg_if::cfg_if;
14-
1514
pub use date_version::{DateVersion, DateVersionError};
1615
pub use update_json::{ProductUpdateInfo, UpdateJson, VersionSpecification};
1716

crates/devolutions-agent-shared/src/update_json.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use crate::DateVersion;
21
use std::fmt;
32

3+
use crate::DateVersion;
4+
45
/// Example JSON structure:
56
///
67
/// ```json

crates/devolutions-agent-shared/src/windows/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ mod reversed_hex_uuid;
22

33
pub mod registry;
44

5-
use uuid::{Uuid, uuid};
6-
75
pub use reversed_hex_uuid::InvalidReversedHexUuid;
6+
use uuid::{Uuid, uuid};
87

98
/// MSI upgrade code for the Devolutions Gateway.
109
///

crates/devolutions-agent-shared/src/windows/reversed_hex_uuid.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Windows-specific UUID format conversion functions.
22
33
use std::str::FromStr;
4+
45
use uuid::Uuid;
56

67
const REVERSED_UUID_STR_LENGTH: usize = uuid::fmt::Simple::LENGTH;

crates/devolutions-pedm-hook/src/appinfo.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ use std::ffi::c_void;
22
use std::mem;
33
use std::sync::OnceLock;
44

5-
use parking_lot::Mutex;
6-
75
use anyhow::{Result, bail};
6+
use parking_lot::Mutex;
87
use retour::GenericDetour;
98
use win_api_wrappers::process::Module;
109
use win_api_wrappers::raw::Win32::Foundation::{HANDLE, HWND};

crates/devolutions-pedm-hook/src/hook.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use std::path::Path;
22

3+
use anyhow::Result;
34
use devolutions_pedm_shared::client::models::{LaunchPayload, StartupInfoDto};
45
use devolutions_pedm_shared::client::{self};
56
use tracing::error;
@@ -14,8 +15,6 @@ use win_api_wrappers::rpc::{RPC_BINDING_HANDLE, RpcBindingHandle};
1415
use win_api_wrappers::thread::Thread;
1516
use win_api_wrappers::utils::SafeWindowsString;
1617

17-
use anyhow::Result;
18-
1918
use crate::appinfo::{APP_PROCESS_INFORMATION, APP_STARTUP_INFO};
2019

2120
/// In Appinfo.dll, RAiLaunchAdminProcess sets the elevation type to 6.

crates/devolutions-pedm-hook/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,9 @@ mod lib_win {
1111
use std::{mem, thread};
1212

1313
use anyhow::{Result, bail};
14-
15-
use parking_lot::Mutex;
16-
1714
use appinfo::dump_interfaces;
1815
use hook::rai_launch_admin_process;
16+
use parking_lot::Mutex;
1917
use win_api_wrappers::process::Module;
2018
use win_api_wrappers::raw::Win32::Foundation::*;
2119
use win_api_wrappers::raw::Win32::System::Rpc::SERVER_ROUTINE;

crates/devolutions-pedm-shared/devolutions-pedm-client-http/src/apis/client.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
use std::rc::Rc;
22

3-
use super::configuration::Configuration;
43
use hyper;
54

5+
use super::configuration::Configuration;
6+
67
pub struct APIClient {
78
default_api: Box<dyn crate::apis::DefaultApi>,
89
}

crates/devolutions-pedm-shared/devolutions-pedm-client-http/src/models/about_data.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
use crate::models;
1211
use serde::{Deserialize, Serialize};
1312

13+
use crate::models;
14+
1415
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
1516
pub struct AboutData {
1617
#[serde(rename = "CurrentRequestCount")]

crates/devolutions-pedm-shared/devolutions-pedm-client-http/src/models/assignment.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
* Generated by: https://openapi-generator.tech
99
*/
1010

11-
use crate::models;
1211
use serde::{Deserialize, Serialize};
1312

13+
use crate::models;
14+
1415
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
1516
pub struct Assignment {
1617
#[serde(rename = "Profile")]

0 commit comments

Comments
 (0)