Skip to content

Commit

Permalink
review fix: add #[inline(always)] to read_dir_json
Browse files Browse the repository at this point in the history
  • Loading branch information
shamardy committed Sep 19, 2024
1 parent bea5479 commit e1dbb67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm2src/mm2_io/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ where

/// Read the `dir_path` entries trying to deserialize each as the `T` type from JSON files.
/// Please note that files that couldn't be deserialized are skipped.
#[inline(always)]
pub async fn read_dir_json<T>(dir_path: &Path) -> FsJsonResult<Vec<T>>
where
T: DeserializeOwned,
Expand Down

0 comments on commit e1dbb67

Please sign in to comment.