Skip to content

Commit

Permalink
feat: remove usage of macro_use (jeremylvln#197)
Browse files Browse the repository at this point in the history
We are in 2023.
  • Loading branch information
marysaka committed Nov 2, 2023
1 parent cac9421 commit 74d4067
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/shulker-operator/src/lease.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl LeaseLock {
}
}

return Err(anyhow!("failed to acquire lease"));
return Err(anyhow::anyhow!("failed to acquire lease"));
};

self.current_resource_version = lease.metadata.resource_version.clone();
Expand Down
6 changes: 0 additions & 6 deletions packages/shulker-operator/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
#[macro_use]
extern crate anyhow;

#[macro_use]
extern crate lazy_static;

pub mod api;
pub mod lease;
pub mod reconcilers;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use http::{Request, Response};
use hyper::Body;
use kube::{core::ObjectMeta, Client};
use lazy_static::lazy_static;
use shulker_crds::v1alpha1::minecraft_cluster::{MinecraftCluster, MinecraftClusterSpec};

lazy_static! {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use kube::core::ObjectMeta;
use kube::Api;
use kube::Client;
use kube::ResourceExt;
use lazy_static::lazy_static;
use shulker_crds::v1alpha1::minecraft_cluster::MinecraftClusterRedisDeploymentType;

use super::redis_service::RedisServiceBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use http::{Request, Response};
use hyper::Body;
use k8s_openapi::api::core::v1::EnvVar;
use kube::{core::ObjectMeta, Client};
use lazy_static::lazy_static;
use shulker_crds::{
resourceref::ResourceRefSpec,
v1alpha1::{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ use k8s_openapi::apimachinery::pkg::apis::meta::v1::ObjectMeta;
use kube::Api;
use kube::Client;
use kube::ResourceExt;
use lazy_static::lazy_static;
use shulker_crds::v1alpha1::minecraft_cluster::MinecraftCluster;
use shulker_crds::v1alpha1::minecraft_server::MinecraftServerVersion;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use http::{Request, Response};
use hyper::Body;
use k8s_openapi::{api::core::v1::EnvVar, apimachinery::pkg::util::intstr::IntOrString};
use kube::{core::ObjectMeta, Client};
use lazy_static::lazy_static;
use shulker_crds::{
resourceref::ResourceRefSpec,
schemas::{FleetAutoscalingSpec, TemplateSpec},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use http::{Request, Response};
use hyper::Body;
use k8s_openapi::{api::core::v1::EnvVar, apimachinery::pkg::util::intstr::IntOrString};
use kube::{core::ObjectMeta, Client};
use lazy_static::lazy_static;
use shulker_crds::{
resourceref::ResourceRefSpec,
schemas::{FleetAutoscalingSpec, TemplateSpec},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ use k8s_openapi::apimachinery::pkg::util::intstr::IntOrString;
use kube::Api;
use kube::Client;
use kube::ResourceExt;
use lazy_static::lazy_static;
use shulker_crds::v1alpha1::minecraft_cluster::MinecraftCluster;
use shulker_crds::v1alpha1::proxy_fleet::ProxyFleetTemplateVersion;

Expand Down

0 comments on commit 74d4067

Please sign in to comment.