refactor: remove macos cfg conts functions
Zigbuild updated to rust 1.87
This commit is contained in:
@@ -27,14 +27,6 @@ impl From<&str> for ContainerId {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl ContainerId {
|
impl ContainerId {
|
||||||
// TODO remove this once zigbuild uses Rust v1.87.0
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
#[allow(clippy::missing_const_for_fn)]
|
|
||||||
pub fn get(&self) -> &str {
|
|
||||||
self.0.as_str()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
|
||||||
pub const fn get(&self) -> &str {
|
pub const fn get(&self) -> &str {
|
||||||
self.0.as_str()
|
self.0.as_str()
|
||||||
}
|
}
|
||||||
@@ -81,14 +73,6 @@ macro_rules! unit_struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl $name {
|
impl $name {
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
#[allow(clippy::missing_const_for_fn)]
|
|
||||||
// TODO remove this once zigbuild uses Rust v1.87.0
|
|
||||||
pub fn get(&self) -> &str {
|
|
||||||
self.0.as_str()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
|
||||||
pub const fn get(&self) -> &str {
|
pub const fn get(&self) -> &str {
|
||||||
self.0.as_str()
|
self.0.as_str()
|
||||||
}
|
}
|
||||||
@@ -706,14 +690,6 @@ impl Logs {
|
|||||||
self.lines.start();
|
self.lines.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
// // TODO remove this once zigbuild uses Rust v1.87.0
|
|
||||||
// #[cfg(target_os = "macos")]
|
|
||||||
// #[allow(clippy::missing_const_for_fn)]
|
|
||||||
// pub fn len(&self) -> usize {
|
|
||||||
// self.logs.items.len()
|
|
||||||
// }
|
|
||||||
|
|
||||||
// #[cfg(not(target_os = "macos"))]
|
|
||||||
pub const fn len(&self) -> usize {
|
pub const fn len(&self) -> usize {
|
||||||
self.lines.items.len()
|
self.lines.items.len()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -407,13 +407,6 @@ impl AppData {
|
|||||||
|
|
||||||
/// Container state methods
|
/// Container state methods
|
||||||
/// Get the total number of none "hidden" containers
|
/// Get the total number of none "hidden" containers
|
||||||
// TODO remove this once zigbuild uses Rust v1.87.0
|
|
||||||
#[cfg(target_os = "macos")]
|
|
||||||
pub fn get_container_len(&self) -> usize {
|
|
||||||
self.containers.items.len()
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(not(target_os = "macos"))]
|
|
||||||
pub const fn get_container_len(&self) -> usize {
|
pub const fn get_container_len(&self) -> usize {
|
||||||
self.containers.items.len()
|
self.containers.items.len()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user