8000 fix(storage): return Result from into_backend() instead of panicking by adityamukho · Pull Request #64 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

fix(storage): return Result from into_backend() instead of panicking - #64

Merged
adityamukho merged 1 commit into
mainfrom
fix/issue-34-into-backend-panic
Apr 3, 2026
Merged

adityamukho merged 1 commit into
mainfrom
fix/issue-34-into-backend-panic

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Summary

  • Changed into_backend() to return Result<B> instead of B
  • Returns an error if the backend Arc has multiple references instead of panicking

Fixes #34 - into_backend() panics on shared Arc.

Returns an error if the backend Arc has multiple references instead of
panicking with a hard failure.

Closes #34
@adityamukho
adityamukho merged commit d955038 into main Apr 3, 2026
10 checks passed
@adityamukho
adityamukho deleted the fix/issue-34-into-backend-panic branch April 3, 2026 02:47
@codecov
codecov Bot commented Apr 3, 2026
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.84%. Comparing base (4d3d971) to head (089cf1a).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
src/storage/persistent_facts.rs 50.00% 2 Missing ⚠️

❌ Your patch status has failed because the patch coverage (50.00%) is below the target coverage (75.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #64      +/-   ##
==========================================
- Coverage   84.86%   84.84%   -0.02%     
==========================================
  Files          25       25              
  Lines        4342     4343       +1     
==========================================
  Hits         3685     3685              
- Misses        657      658       +1     
Files with missing lines Coverage Δ
src/storage/persistent_facts.rs 75.73% <50.00%> (-0.14%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

into_backend() panics on shared Arc

1 participant

0