Skip to content

Commit

Permalink
name/name_any
Browse files Browse the repository at this point in the history
Signed-off-by: clux <sszynrae@gmail.com>
  • Loading branch information
clux committed Feb 17, 2023
1 parent b0e89fc commit 68a3666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::try_default().await?;
let pr: Api<PrometheusRule> = Api::default_namespaced(client);
for p in pr.list(&Default::default()).await? {
println!("Found PrometheusRule {} in current namespace", p.name());
println!("Found PrometheusRule {} in current namespace", p.name_any());
}
Ok(())
}
Expand Down

0 comments on commit 68a3666

Please sign in to comment.