Skip to content

Commit c147b4a

Browse files
committed
chore: upgrade to can-dbc v7
1 parent 5b9d3d0 commit c147b4a

File tree

8 files changed

+3390
-82
lines changed

8 files changed

+3390
-82
lines changed

.editorconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ indent_style = space
55
indent_size = 4
66
charset = utf-8
77
trim_trailing_whitespace = false
8-
insert_final_newline = false
98

109
[*.md]
1110
trim_trailing_whitespace = false

Cargo.lock

Lines changed: 47 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rust-version = "1.78.0"
1818
std = []
1919

2020
[dependencies]
21-
can-dbc = "6.0.0"
21+
can-dbc = "7.0.0"
2222
anyhow = "1.0.68"
2323
heck = "0.4.0"
2424
typed-builder = "0.18.0"

dbc-codegen-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct Cli {
2020

2121
fn main() {
2222
let args = Cli::parse();
23-
let dbc_file = std::fs::read(&args.dbc_path).unwrap_or_else(|e| {
23+
let dbc_file = std::fs::read_to_string(&args.dbc_path).unwrap_or_else(|e| {
2424
eprintln!("could not read `{}`: {}", args.dbc_path.display(), e);
2525
exit(exitcode::NOINPUT);
2626
});

0 commit comments

Comments
 (0)