#Code review for Rush (shell project)
15 messages · Page 1 of 1 (latest)
.map_err is usually seen to be something that takes in a pure function to transform error types
i would add something like this to the InternalCommandError
#[error("command failed: {0}")]
CommandFailed(String),
What is {9}
What does {0} mean in this context
it refers to the String in CommandFailed(String)
so if you supply a string to that error it gets added to the error message
Not really a code review but a heads up, you’re using regular comment in place of doc comment a fair bit!
Oh that's an extension I have called Better Comments
It makes those highlight in red
Though I can (probably?) change it to not conflict with doc comments
Fixed
Changed it to $