`ProtoStr` is a public type and it has a public method `to_str`, however `to_str` returns a private type `Utf8Error`, which triggers `private-interfaces` [1]. Exporting string::Utf8Error makes it possible for other crates to wrap it in another error type and propagate it with "?". [1] https://doc.rust-lang.org/beta/rustc/lints/listing/warn-by-default.html#private-interfaces PiperOrigin-RevId: 684477510pull/18739/head
parent
cffa590260
commit
29c232a6b4
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue