Skip to content

Commit 16911db

Browse files
committed
Fix clippy lints
1 parent 8492f77 commit 16911db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/common/examples/greeks_actor_example.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414
// -------------------------------------------------------------------------------------------------
1515

16-
//! Example showing how to use the GreeksCalculator with a DataActor.
16+
//! Example showing how to use the `GreeksCalculator` with a `DataActor`.
1717
1818
use std::{
1919
cell::RefCell,
@@ -32,7 +32,7 @@ use nautilus_common::{
3232
};
3333
use nautilus_model::{data::greeks::GreeksData, enums::PositionSide, identifiers::InstrumentId};
3434

35-
/// A custom actor that uses the GreeksCalculator.
35+
/// A custom actor that uses the `GreeksCalculator`.
3636
struct GreeksActor {
3737
core: DataActorCore,
3838
greeks_calculator: GreeksCalculator,
@@ -216,7 +216,7 @@ fn main() -> anyhow::Result<()> {
216216

217217
// Example: Calculate greeks for an instrument
218218
let instrument_id = InstrumentId::from("SPY.AMEX");
219-
match actor.calculate_instrument_greeks(instrument_id.clone()) {
219+
match actor.calculate_instrument_greeks(instrument_id) {
220220
Ok(greeks) => println!("Calculated greeks for {instrument_id}: {greeks:?}"),
221221
Err(e) => println!("Error calculating greeks: {e}"),
222222
}

0 commit comments

Comments
 (0)