Skip to content

Commit d95c4bf

Browse files
committed
Apply clippy suggestions
1 parent 35228f2 commit d95c4bf

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

src/init.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ async fn pull_feature_configuration(feature_ref: &OciReference) -> anyhow::Resul
7676
entry.read_to_end(&mut data)?;
7777
let feature: registry::Feature = serde_json::from_slice(data.as_slice())?;
7878

79-
log::debug!("pull_feature_configuration: read {} bytes", size);
79+
log::debug!("pull_feature_configuration: read {size} bytes");
8080

8181
return Ok(feature);
8282
}
@@ -367,7 +367,7 @@ impl TemplateBuilder {
367367
let config = serde_json::from_slice(data.as_slice())?;
368368

369369
self.config.replace(config);
370-
log::debug!("TemplateBuilder::replace_config: read {} bytes", size);
370+
log::debug!("TemplateBuilder::replace_config: read {size} bytes");
371371

372372
return Ok(());
373373
}

src/inspect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ impl Displayable for registry::Template {
206206
}
207207

208208
fn display<T: ?Sized + Displayable>(value: &T, format: &InspectDisplay) -> serde_json::error::Result<()> {
209-
log::debug!("display: as {}", format);
209+
log::debug!("display: as {format}");
210210

211211
match format {
212212
InspectDisplay::Json => value.display_json()?,

src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,7 @@ async fn main() -> Result<(), anyhow::Error> {
9494
if let Some(command) = args.command {
9595
if !index_file.exists() {
9696
// suggested user action
97-
log::error!(
98-
"Missing devcontainer-index.json.\n\n\tRun `{} --pull-index`.\n",
99-
BIN_NAME
100-
);
97+
log::error!("Missing devcontainer-index.json.\n\n\tRun `{BIN_NAME} --pull-index`.\n");
10198
}
10299

103100
let index = registry::read_devcontainer_index(index_file)?;

0 commit comments

Comments
 (0)