Skip to content

Commit

Permalink
Fix clippy lints (nushell#13645)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanManske authored Aug 19, 2024
1 parent 7e9d32d commit b63c351
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions crates/nu_plugin_formats/src/from/plist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ mod test {

#[test]
fn test_convert_real() {
let plist_val = PlistValue::Real(3.14);
let plist_val = PlistValue::Real(3.5);
let result = convert_plist_value(&plist_val, Span::test_data());
assert_eq!(result, Ok(NuValue::float(3.14, Span::test_data())));
assert_eq!(result, Ok(NuValue::float(3.5, Span::test_data())));
}

#[test]
Expand Down Expand Up @@ -216,9 +216,10 @@ mod test {

#[test]
fn test_convert_array() {
let mut arr = Vec::new();
arr.push(PlistValue::String("a".to_string()));
arr.push(PlistValue::String("b".to_string()));
let arr = vec![
PlistValue::String("a".into()),
PlistValue::String("b".into()),
];
let nu_arr = convert_array(&arr, Span::test_data()).unwrap();
assert_eq!(
nu_arr,
Expand Down

0 comments on commit b63c351

Please sign in to comment.