Switch to using ceil_char_boundary for log message command/reply truncation

XMLWordPrintableJSON

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

      Currently we implement our own logic to find the smallest index that is a char boundary >= a specified index. There is a standard library method to do this for you, but it is currently nightly-only. Once it is stabilized and supported on our MSRV we should switch to using it.

      https://doc.rust-lang.org/std/string/struct.String.html#method.ceil_char_boundary

            Assignee:
            Unassigned
            Reporter:
            Kaitlin Mahar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: