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

Commit

Permalink
Added support to Value::Filesize
Browse files Browse the repository at this point in the history
  • Loading branch information
ayax79 committed Feb 2, 2024
1 parent b195073 commit ad9b2e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nu_plist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ fn convert_nu_value(nu_val: &NuValue) -> Result<PlistValue, LabeledError> {
.map_err(|e| build_label_error(format!("{}", e), &span))?;
convert_nu_dict(record)
}
NuValue::Filesize { val, .. } => Ok(PlistValue::Integer(Into::<Integer>::into(*val))),
_ => Err(build_label_error(
format!("{:?} is not convertible", nu_val),
&span,
Expand Down

0 comments on commit ad9b2e4

Please sign in to comment.