Unverified 提交 c738b5e3 authored 作者: Nazar Mokrynskyi's avatar Nazar Mokrynskyi 提交者: GitHub

Fix clippy lints from the latest Rust release (#940)

上级 e3cf83df
......@@ -51,6 +51,7 @@ struct TransportOptions {
#[derive(Serialize, Message)]
#[serde(tag = "action")]
#[rtype(result = "()")]
#[allow(clippy::large_enum_variant)]
enum ServerMessage {
/// Initialization message with consumer/producer transport options and Router's RTP
/// capabilities necessary to establish WebRTC transport connection client-side
......
......@@ -64,6 +64,7 @@ struct TransportOptions {
#[derive(Serialize, Message)]
#[serde(tag = "action")]
#[rtype(result = "()")]
#[allow(clippy::large_enum_variant)]
enum ServerMessage {
/// Initialization message with consumer/producer transport options and Router's RTP
/// capabilities necessary to establish WebRTC transport connection client-side
......
......@@ -354,6 +354,7 @@ mod participant {
#[derive(Serialize, Message)]
#[serde(tag = "action")]
#[rtype(result = "()")]
#[allow(clippy::large_enum_variant)]
pub enum ServerMessage {
/// Initialization message with consumer/producer transport options and Router's RTP
/// capabilities necessary to establish WebRTC transport connection client-side
......
......@@ -2,7 +2,7 @@ use std::env;
use std::process::Command;
fn main() {
if std::env::var("DOCS_RS").is_ok() {
if env::var("DOCS_RS").is_ok() {
// Skip everything when building docs on docs.rs
return;
}
......@@ -60,7 +60,7 @@ fn main() {
#[cfg(target_os = "macos")]
{
let path = Command::new("xcrun")
.args(&["--show-sdk-path"])
.arg("--show-sdk-path")
.output()
.expect("Failed to start")
.stdout;
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论