Skip to content

Commit 5188bc3

Browse files
committed
Cleanups
1 parent 6a85518 commit 5188bc3

File tree

4 files changed

+32
-3
lines changed

4 files changed

+32
-3
lines changed

nautilus_core/common/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ edition = "2021"
77

88
[lib]
99
name = "common"
10-
crate-type = ["cdylib"]
10+
crate-type = ["rlib", "staticlib"]
1111

1212
[dependencies]
1313
nautilus_core = { path = "../core" }
14-
pyo3 = { version = "0.16.4", features = ["extension-module"] }
14+
pyo3 = { version = "0.16.4" }

nautilus_core/common/src/lib.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// Copyright (C) 2015-2022 Nautech Systems Pty Ltd. All rights reserved.
3+
// https://nautechsystems.io
4+
//
5+
// Licensed under the GNU Lesser General Public License Version 3.0 (the "License");
6+
// You may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at https://www.gnu.org/licenses/lgpl-3.0.en.html
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
// -------------------------------------------------------------------------------------------------
15+
116
use pyo3::prelude::*;
217

318
pub mod logging;

nautilus_core/common/src/logging.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
// -------------------------------------------------------------------------------------------------
2+
// Copyright (C) 2015-2022 Nautech Systems Pty Ltd. All rights reserved.
3+
// https://nautechsystems.io
4+
//
5+
// Licensed under the GNU Lesser General Public License Version 3.0 (the "License");
6+
// You may not use this file except in compliance with the License.
7+
// You may obtain a copy of the License at https://www.gnu.org/licenses/lgpl-3.0.en.html
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
// -------------------------------------------------------------------------------------------------
15+
116
use std::{
217
fmt::Display,
318
io::{self, BufWriter, Stderr, Stdout, Write},

nautilus_core/model/src/types/price.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ mod tests {
333333

334334
#[test]
335335
fn test_price_display() {
336-
use std::fmt::Write as FmtWrite;
337336
let input_string = "44.123456";
338337
let price = Price::from(input_string);
339338

0 commit comments

Comments
 (0)