Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Dec 9, 2024
1 parent 81c8ff0 commit 284ed75
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions crates/torii/server/src/handlers/mcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,25 +309,23 @@ The database is optimized for querying game state and history, allowing clients
.and_then(Value::as_str);

Check warning on line 309 in crates/torii/server/src/handlers/mcp.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/server/src/handlers/mcp.rs#L303-L309

Added lines #L303 - L309 were not covered by tests

let schema_query = match table_filter {
Some(_table) => format!(
"SELECT
Some(_table) => "SELECT
m.name as table_name,
p.*
FROM sqlite_master m
JOIN pragma_table_info(m.name) p
WHERE m.type = 'table'
AND m.name = ?
ORDER BY m.name, p.cid"
),
None => format!(
"SELECT
.to_string(),
None => "SELECT
m.name as table_name,
p.*
FROM sqlite_master m
JOIN pragma_table_info(m.name) p
WHERE m.type = 'table'
ORDER BY m.name, p.cid"
),
.to_string(),

Check warning on line 328 in crates/torii/server/src/handlers/mcp.rs

View check run for this annotation

Codecov / codecov/patch

crates/torii/server/src/handlers/mcp.rs#L311-L328

Added lines #L311 - L328 were not covered by tests
};

let rows = match table_filter {
Expand Down

0 comments on commit 284ed75

Please sign in to comment.