Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Merge pull request #113 from sinkuu/allow
Browse files Browse the repository at this point in the history
Remove unnecessary allow attributes
  • Loading branch information
dtolnay committed Oct 24, 2018
2 parents b481253 + 6512745 commit 4954d57
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/ser.rs
Expand Up @@ -453,7 +453,6 @@ where
}
}

#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
fn to_yaml<T>(elem: T) -> Result<Yaml>
where
T: ser::Serialize,
Expand Down
1 change: 0 additions & 1 deletion src/value/mod.rs
Expand Up @@ -54,7 +54,6 @@ pub type Sequence = Vec<Value>;
/// let val = serde_yaml::to_value("s").unwrap();
/// assert_eq!(val, Value::String("s".to_owned()));
/// ```
#[cfg_attr(feature = "cargo-clippy", allow(needless_pass_by_value))]
pub fn to_value<T>(value: T) -> Result<Value, Error>
where
T: Serialize,
Expand Down

0 comments on commit 4954d57

Please sign in to comment.