Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-3658

decimal128: should implement Display Trait

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      bson crate needs decimal128 to have a Display Trait. This should mostly be a wrapper around the to_string method. If there are no hiccups along the way, the below should work:
      impl fmt::Display for Decimal128 { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "({}, {})", self.to_string())
      }
      }

      Attachments

        Activity

          People

            irina.shestak@mongodb.com Irina Shestak (Inactive)
            irina.shestak@mongodb.com Irina Shestak (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: