Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/py/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//! contract used by the HTTP server.

use pyo3::prelude::*;
use pyo3::types::{PyDict, PyString, PyStringMethods as _};
use pyo3::types::{PyDict, PyString};
use serde::de::DeserializeOwned;

pub fn from_py<T: DeserializeOwned + Default>(opts: Option<&Bound<'_, PyDict>>) -> PyResult<T> {
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/console_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ pub fn spawn_console_sampler(state: crate::state::AppState, started_at: Instant)
.unwrap_or(0.0);

// ── Concurrency ────────────────────────────────────────────────
let concurrency_max = state.config.concurrency as u32;
let _concurrency_max = state.config.concurrency as u32;
let concurrency_active = state.console.active_requests.load(Ordering::SeqCst);

// ── Push sample + broadcast ────────────────────────────────────
Expand Down
1 change: 0 additions & 1 deletion crates/server/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use axum::response::{IntoResponse, Response};
use engine::EngineError;
use serde::Serialize;
use serde_json::{Value, json};
use std::time::Duration;

/// Convenient `Result` alias for handlers and helpers.
pub type ApiResult<T> = Result<T, ApiError>;
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/multipart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ impl FormFields {
/// Files are streamed out to disk to keep memory usage bounded; the
/// scratch directory is auto-deleted when [`FormFields`] (and hence
/// [`Self::tmp`]) is dropped.
pub async fn from_multipart(mut mp: Multipart) -> Result<Self, ApiError> {
pub async fn from_multipart(mp: Multipart) -> Result<Self, ApiError> {
Self::from_multipart_with_config(mp, MultipartSecurityConfig::default()).await
}

Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/routes/console.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub async fn console_stream(
State(state): State<AppState>,
) -> Sse<impl Stream<Item = Result<Event, Infallible>>> {
let started_at = state.started_at;
let mut rx = state.console.broadcast.subscribe();
let rx = state.console.broadcast.subscribe();

// Send initial snapshot immediately on connect (no waiting for next 5s tick).
// For the initial snapshot we read the health gauges as a best-effort proxy;
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/routes/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use axum::response::IntoResponse;
use axum::Json;
use regex::Regex;
use serde::Serialize;
use tracing::{info, warn};
use tracing::info;

use crate::error::{ApiError, ApiResult};
use crate::multipart::FormFields;
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/routes/estimate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub async fn estimate(
let analysis = analyze_html(&html).await;

// Build size breakdown
let mut breakdown = SizeBreakdown {
let breakdown = SizeBreakdown {
markup_mb: analysis.markup_size_mb,
fonts_mb: analysis.font_size_mb,
images_mb: analysis.image_size_mb,
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/routes/pdfengines.rs
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ pub async fn pdfengines_convert(
/// Reads bookmarks from a PDF and returns them as JSON.
pub async fn pdfengines_bookmarks_read(
State(state): State<AppState>,
headers: HeaderMap,
_headers: HeaderMap,
mp: Multipart,
) -> ApiResult<Response> {
let _permit = acquire_permit(&state).await?;
Expand Down
2 changes: 1 addition & 1 deletion crates/server/src/security/url_validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Blocks access to internal networks, localhost, and other potentially
//! dangerous destinations to prevent attacks via the `url_to_pdf` endpoint.

use std::net::{IpAddr, Ipv4Addr, Ipv6Addr};
use std::net::IpAddr;

use crate::error::ApiError;

Expand Down
Loading