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