mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-01-22 09:23:19 +01:00
Remove typeshare use
This commit is contained in:
@@ -15,6 +15,5 @@ zbus.workspace = true
|
||||
concat-idents.workspace = true
|
||||
udev.workspace = true
|
||||
inotify.workspace = true
|
||||
typeshare.workspace = true
|
||||
|
||||
rusb.workspace = true
|
||||
|
||||
@@ -2,7 +2,6 @@ use std::path::PathBuf;
|
||||
|
||||
use log::{info, warn};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use typeshare::typeshare;
|
||||
use zbus::zvariant::{OwnedValue, Type, Value};
|
||||
|
||||
use crate::error::{PlatformError, Result};
|
||||
@@ -147,7 +146,6 @@ impl CPUControl {
|
||||
}
|
||||
}
|
||||
|
||||
#[typeshare]
|
||||
#[repr(u8)]
|
||||
#[derive(
|
||||
Deserialize, Serialize, Type, Value, OwnedValue, Debug, PartialEq, PartialOrd, Clone, Copy,
|
||||
@@ -179,7 +177,6 @@ impl From<CPUGovernor> for String {
|
||||
}
|
||||
}
|
||||
|
||||
#[typeshare]
|
||||
#[repr(u32)]
|
||||
#[derive(
|
||||
Deserialize,
|
||||
|
||||
@@ -3,7 +3,6 @@ use std::io::{Read, Write};
|
||||
use std::path::{Path, PathBuf};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
use typeshare::typeshare;
|
||||
use zbus::zvariant::{OwnedValue, Type, Value};
|
||||
|
||||
use crate::error::PlatformError;
|
||||
@@ -252,7 +251,6 @@ define_attribute_getters!(
|
||||
);
|
||||
|
||||
/// CamelCase names of the properties. Intended for use with DBUS
|
||||
#[typeshare]
|
||||
#[repr(u8)]
|
||||
#[derive(Clone, Copy, Serialize, Deserialize, Type, Value, OwnedValue, PartialEq, PartialOrd)]
|
||||
#[zvariant(signature = "s")]
|
||||
|
||||
@@ -4,7 +4,6 @@ use std::str::FromStr;
|
||||
|
||||
use log::{info, warn};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use typeshare::typeshare;
|
||||
use zbus::zvariant::{OwnedValue, Type, Value};
|
||||
|
||||
use crate::error::{PlatformError, Result};
|
||||
@@ -148,7 +147,6 @@ impl Default for RogPlatform {
|
||||
}
|
||||
}
|
||||
|
||||
#[typeshare]
|
||||
#[repr(u8)]
|
||||
#[derive(
|
||||
Serialize, Deserialize, Default, Type, Value, OwnedValue, Debug, PartialEq, Eq, Clone, Copy,
|
||||
@@ -245,7 +243,6 @@ impl Display for GpuMode {
|
||||
}
|
||||
}
|
||||
|
||||
#[typeshare]
|
||||
#[repr(u32)]
|
||||
#[derive(
|
||||
Deserialize,
|
||||
@@ -352,7 +349,6 @@ impl Display for ThrottlePolicy {
|
||||
}
|
||||
|
||||
/// CamelCase names of the properties. Intended for use with DBUS
|
||||
#[typeshare]
|
||||
#[repr(u8)]
|
||||
#[derive(Debug, Clone, Copy, Serialize, Deserialize, Type, PartialEq, PartialOrd)]
|
||||
#[zvariant(signature = "s")]
|
||||
|
||||
Reference in New Issue
Block a user