Update dependencies & CI changes

- Use separate release-lto profile for CI
- A couple of clippy fixes
This commit is contained in:
2023-11-18 15:03:24 -05:00
parent 5e13998e93
commit 8f559c8921
4 changed files with 193 additions and 181 deletions

View File

@@ -53,7 +53,8 @@ pub fn run(args: Args) -> Result<()> {
fn list(args: ListArgs) -> Result<()> {
let file = map_file(&args.file)?;
let rarc = RarcReader::new(&mut file.as_reader())?;
let rarc = RarcReader::new(&mut file.as_reader())
.with_context(|| format!("Failed to process RARC file '{}'", args.file.display()))?;
let mut current_path = PathBuf::new();
for node in rarc.nodes() {
@@ -77,7 +78,8 @@ fn list(args: ListArgs) -> Result<()> {
fn extract(args: ExtractArgs) -> Result<()> {
let file = map_file(&args.file)?;
let rarc = RarcReader::new(&mut file.as_reader())?;
let rarc = RarcReader::new(&mut file.as_reader())
.with_context(|| format!("Failed to process RARC file '{}'", args.file.display()))?;
let mut current_path = PathBuf::new();
for node in rarc.nodes() {