-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add SourceLink support to SourceBundles #804
Conversation
|
match self.index.indexed_files.get(&key) { | ||
Some(zip_path) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer an if let Some()
with an early return, but thats just preference :-)
let FileKey::Path(path) = key else { | ||
return Ok(None); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fun fact, now that we have rustfmt
support for let-else, if you remove the ;
from the inner return, it will keep auto-formating things onto a single line, if it was on a single line to begin with.
Co-authored-by: Arpad Borsos <[email protected]>
76f02ee
to
bcf3f6d
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #804 +/- ##
==========================================
+ Coverage 74.80% 74.89% +0.08%
==========================================
Files 63 63
Lines 15603 15656 +53
==========================================
+ Hits 11672 11725 +53
Misses 3931 3931 |
Based on #803.
This adds a
source_links
map to the sourcebundle manifest, but for now there are no methods for populating it. Lookup functionality is included, however.