Skip to content

Commit

Permalink
lintup
Browse files Browse the repository at this point in the history
  • Loading branch information
olix0r committed Nov 3, 2023
1 parent 8fbcdf9 commit bc9e26b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[workspace]
resolver = "2"
default-members = ["kubert"]
members = [
"kubert",
Expand Down
5 changes: 1 addition & 4 deletions kubert/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,7 @@ mod tests {
.namespace()
.expect("resource must have a namespace");
let name = resource.name_unchecked();
self.0
.entry(namespace)
.or_insert_with(HashSet::new)
.insert(name);
self.0.entry(namespace).or_default().insert(name);
}

fn delete(&mut self, namespace: String, name: String) {
Expand Down
10 changes: 5 additions & 5 deletions kubert/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,19 @@ pub mod shutdown;
#[cfg(all(feature = "admin", feature = "clap"))]
pub use self::admin::AdminArgs;

#[cfg(all(feature = "client"))]
#[cfg(feature = "client")]
pub use self::client::ClientArgs;

#[cfg(all(feature = "initialized"))]
#[cfg(feature = "initialized")]
pub use self::initialized::Initialized;

#[cfg(all(feature = "lease"))]
#[cfg(feature = "lease")]
pub use self::lease::LeaseManager;

#[cfg(all(feature = "log"))]
#[cfg(feature = "log")]
pub use self::log::{LogFilter, LogFormat, LogInitError};

#[cfg(all(feature = "runtime"))]
#[cfg(feature = "runtime")]
pub use self::runtime::Runtime;

#[cfg(feature = "server")]
Expand Down

0 comments on commit bc9e26b

Please sign in to comment.