Skip to content

Commit 428942c

Browse files
style(Common): Normalize lint allowances and formatting across core modules
Reorganize `#![allow(...)]` attributes in `Source/Library.rs` to include `dead_code` and unused warnings alongside naming exceptions, removing the blanket suppression in `build.rs`. In `Source/Telemetry/mod.rs`, introduce consistent spacing between module declarations for readability. Remove an isolated `#[allow(dead_code)]` in `Source/Transport/Registry/mod.rs` to expose the unused field, and add a blank line in `Source/Transport/TransportStrategy.rs` to align with project formatting standards. Update `package.json` to bump `@cloudflare/workers-types` to version 4.20260523.1. This consolidates lint configuration at the crate root, enforces consistent whitespace in module definitions, and brings the dependency version up to date without altering runtime behavior.
1 parent cfde990 commit 428942c

6 files changed

Lines changed: 21 additions & 5 deletions

File tree

Source/Library.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
2-
#![allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
2+
#![allow(
3+
non_snake_case,
4+
non_camel_case_types,
5+
non_upper_case_globals,
6+
dead_code,
7+
unused_imports,
8+
unused_variables,
9+
unused_assignments
10+
)]
311

412
//! # Common: Abstract Core Library for Code Editor Land
513
//!

Source/Telemetry/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,23 @@
2727
//! - `Initialize::Fn` - `Tier`-tagged boot
2828
2929
pub mod CaptureError;
30+
3031
pub mod CaptureEvent;
32+
3133
pub mod CaptureSession;
34+
3235
pub mod Client;
36+
3337
pub mod Configuration;
38+
3439
pub mod DistinctId;
40+
3541
pub mod EmitOTLPSpan;
42+
3643
pub mod Initialize;
44+
3745
pub mod IsAllowed;
46+
3847
pub mod Tier;
48+
3949
pub mod Traceparent;

Source/Transport/Registry/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ use super::{
1919
/// Selection strategy for automatic transport selection.
2020
pub struct TransportSelector {
2121
/// Environment detector for auto-selection
22-
#[allow(dead_code)]
2322
EnvironmentDetector:Box<dyn TransportTypeDetector + Send + Sync>,
2423

2524
/// Priority order for fallback chain

Source/Transport/TransportStrategy.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ impl Default for TransportCapabilities {
100100
fn default() -> Self {
101101
Self {
102102
MaximumMessageSize:1024 * 1024, // 1MB
103+
103104
SupportsRequestResponse:true,
104105

105106
SupportsServerStreaming:false,

build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![allow(non_snake_case)]
2-
31
use serde::Deserialize;
42

53
#[derive(Deserialize)]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"prepublishOnly": "Build 'Source/**/*.ts'"
2323
},
2424
"devDependencies": {
25-
"@cloudflare/workers-types": "4.20260522.1",
25+
"@cloudflare/workers-types": "4.20260523.1",
2626
"@playform/build": "0.3.2"
2727
},
2828
"publishConfig": {

0 commit comments

Comments
 (0)