Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-1545

Consider removing the take_mut dependency

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      As a user has pointed out in this issue, the take_mut crate contains a potential memory leak and appears to be abandoned. While our usage of the crate does not touch the method with the potential memory leak, we should still consider removing the dependency because of its expansive usage of unsafe code along with its unmaintained status. This would require some internal refactoring to allow a &mut T to be taken; we could potentially switch to using {{Option}}s or create an internal API to emulate such functionality.

            Assignee:
            Unassigned Unassigned
            Reporter:
            isabel.atkinson@mongodb.com Isabel Atkinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: