There was an error while loading. Please reload this page.
1 parent f5df6d8 commit b2cde31Copy full SHA for b2cde31
1 file changed
livekit-datatrack/src/local/proto.rs
@@ -33,7 +33,7 @@ impl From<SfuPublishRequest> for proto::PublishDataTrackRequest {
33
fn from(event: SfuPublishRequest) -> Self {
34
use proto::encryption::Type;
35
let encryption = if event.uses_e2ee { Type::Gcm } else { Type::None }.into();
36
- let schema = event.schema.map(|schema| schema.into());
+ let schema = event.schema.map(Into::into);
37
let frame_encoding = event.frame_encoding.map(Into::into);
38
Self {
39
pub_handle: event.handle.into(),
0 commit comments