Skip to content
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

Range inclusive size 1 #44

Merged
merged 1 commit into from
Sep 13, 2022

Conversation

AlexandruCihodaru
Copy link
Collaborator

Summary of the PR

Fixes #42
Allows creation of intervals where the start is equal with the end of the interval. This could also be the first PR from a series of changes that could enable use of interval_tree allocation engine for IdAllocator.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • Any newly added unsafe code is properly documented.

Removed the check that denied InclusiveRanges where start was
equal with end.
Added a test to check that allocation succeds when there is a size 1
range before or after the requested range.

Signed-off-by: AlexandruCihodaru <[email protected]>
@alxiord alxiord merged commit e55eb23 into rust-vmm:main Sep 13, 2022
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.

Bug when creating RangeInclusive of size 1
3 participants