Skip to content

Commit 3fda25b

Browse files
authored
Run cargo sort, fix clippy lint (#892)
Seems like cargo-sort 2.0 prefers a different sort order for the top-level sections like `[lib]` and `[features]`.
1 parent 6e8445a commit 3fda25b

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

modeling-cmds-macros/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ description = "Macros for defining KittyCAD modeling commands"
88
authors = ["Adam Chalmers"]
99
keywords = ["kittycad"]
1010
license = "MIT"
11+
12+
[lib]
13+
proc-macro = true
1114
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1215

1316
[dependencies]
@@ -16,9 +19,6 @@ proc-macro2 = { workspace = true }
1619
quote = { workspace = true }
1720
syn = { workspace = true, features = ["extra-traits", "full"] }
1821

19-
[lib]
20-
proc-macro = true
21-
2222
[dev-dependencies]
2323
anyhow = "1.0.97"
2424
insta = "1.41.1"

modeling-cmds/Cargo.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ rust-version = "1.74"
88
repository = "https://github.com/KittyCAD/modeling-api"
99
keywords = ["kittycad"]
1010
license = "MIT"
11+
12+
[package.metadata.docs.rs]
13+
all-features = true
14+
15+
[features]
16+
default = []
17+
derive-jsonschema-on-enums = []
18+
tabled = ["dep:tabled"]
19+
ts-rs = ["dep:ts-rs"]
20+
slog = ["dep:slog"]
21+
cxx = ["dep:cxx"]
22+
convert_client_crate = ["dep:kittycad"]
23+
websocket = ["dep:serde_json"]
24+
webrtc = ["dep:webrtc"]
25+
unstable_exhaustive = []
1126
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1227

1328
[dependencies]
@@ -45,24 +60,9 @@ ts-rs = { version = "10.1.0", optional = true, features = [
4560
uuid = { version = "1.16.0", features = ["serde", "v4", "js"] }
4661
webrtc = { version = "0.12", optional = true }
4762

48-
[lints]
49-
workspace = true
50-
51-
[features]
52-
default = []
53-
derive-jsonschema-on-enums = []
54-
tabled = ["dep:tabled"]
55-
ts-rs = ["dep:ts-rs"]
56-
slog = ["dep:slog"]
57-
cxx = ["dep:cxx"]
58-
convert_client_crate = ["dep:kittycad"]
59-
websocket = ["dep:serde_json"]
60-
webrtc = ["dep:webrtc"]
61-
unstable_exhaustive = []
62-
6363
[dev-dependencies]
6464
bson = "2.14.0"
6565

66-
[package.metadata.docs.rs]
67-
all-features = true
66+
[lints]
67+
workspace = true
6868

modeling-session/src/actor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ pub async fn start(
124124
/// Given the text from a WebSocket, deserialize its JSON.
125125
/// Returns OK if the WebSocket's JSON represents a successful response.
126126
/// Returns an error if the WebSocket's JSON represented a failure response.
127+
#[allow(clippy::result_large_err)]
127128
fn decode_websocket_text(text: &str) -> Result<WebSocketResponse> {
128129
let resp = serde_json::from_str(text)?;
129130
Ok(resp)

0 commit comments

Comments
 (0)