Skip to content

Commit b2cde31

Browse files
committed
Use into shorthand
1 parent f5df6d8 commit b2cde31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

livekit-datatrack/src/local/proto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl From<SfuPublishRequest> for proto::PublishDataTrackRequest {
3333
fn from(event: SfuPublishRequest) -> Self {
3434
use proto::encryption::Type;
3535
let encryption = if event.uses_e2ee { Type::Gcm } else { Type::None }.into();
36-
let schema = event.schema.map(|schema| schema.into());
36+
let schema = event.schema.map(Into::into);
3737
let frame_encoding = event.frame_encoding.map(Into::into);
3838
Self {
3939
pub_handle: event.handle.into(),

0 commit comments

Comments
 (0)