Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/cli/drift/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ fn print_drift_entry(entry: &DriftEntry) {
println!(
" {} {} {} {}{}",
cyan.apply_to("●"),
&entry.name,
entry.name,
dim.apply_to("—"),
cyan.apply_to("local only"),
lineage,
Expand Down Expand Up @@ -649,7 +649,7 @@ fn print_drift_card(entry: &DriftEntry, lineage: &str) {
);
let body_drifted = matches!(entry.status, DriftStatus::BodyOnly | DriftStatus::Both);

println!(" {} {}{}", dim.apply_to("┌"), &entry.name, lineage);
println!(" {} {}{}", dim.apply_to("┌"), entry.name, lineage);

if frontmatter_drifted {
let keys_display = if entry.changed_keys.is_empty() {
Expand Down
6 changes: 3 additions & 3 deletions src/cli/provenance/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ pub fn execute(
" {} {} {}",
dim.apply_to("│"),
dim.apply_to("built"),
&details.metadata.started_on
details.metadata.started_on
);
println!(
" {} {} {} {}",
dim.apply_to("│"),
dim.apply_to("builder"),
&details.builder.id,
details.builder.id,
dim.apply_to(&details.builder.version.forge)
);
println!(" {}", dim.apply_to("│"));
Expand All @@ -94,7 +94,7 @@ pub fn execute(
" {} {} {} {}",
dim.apply_to("│"),
dim.apply_to("input"),
&dependency.uri,
dependency.uri,
dim.apply_to(format!("sha256:{short}"))
);
}
Expand Down
5 changes: 1 addition & 4 deletions src/yaml/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,7 @@ fn resolve_expression<'yaml>(root: &'yaml Value, expression: &str) -> Option<&'y
let mut current = root;

for segment in &segments {
match current.get(*segment) {
Some(next) => current = next,
None => return None,
}
current = current.get(*segment)?;
}

Some(current)
Expand Down