Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Jan 13, 2024
1 parent 24e14b8 commit b559af7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nautilus_core/adapters/src/databento/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,13 @@ impl DatabentoDataLoader {
}

/// Return the internal Databento publishers currently held by the loader.
#[must_use]
pub fn get_publishers(&self) -> &IndexMap<u16, DatabentoPublisher> {
&self.publishers
}

// Return the dataset which matches the given `venue` (if found).
#[must_use]
pub fn get_dataset_for_venue(&self, venue: &Venue) -> Option<&Dataset> {
self.venue_dataset.get(venue)
}
Expand Down
2 changes: 1 addition & 1 deletion nautilus_core/adapters/src/databento/python/loader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ use crate::databento::loader::DatabentoDataLoader;
impl DatabentoDataLoader {
#[new]
pub fn py_new(path: Option<String>) -> PyResult<Self> {
DatabentoDataLoader::new(path.map(PathBuf::from)).map_err(to_pyvalue_err)
Self::new(path.map(PathBuf::from)).map_err(to_pyvalue_err)
}
}

0 comments on commit b559af7

Please sign in to comment.