i would write let count = count_lines(&Path::new(path))?; or, on the line before let path = Path::new(path);
i would write let count = count_lines(&Path::new(path))?; or, on the line before let path = Path::new(path);
If you have a fediverse account, you can quote this note from your own instance. Search https://bsky.brid.gy/convert/ap/at://did:plc:3danwc67lo7obz2fmdg6jxcr/app.bsky.feed.post/3lmd2utmxt227 on your instance and quote it. (Note that quoting is not supported in Mastodon.)