style: cargo fmt on main.rs after eprintln->println fix
This commit is contained in:
parent
bc41e58b4f
commit
a4bb679cf1
|
|
@ -3465,8 +3465,8 @@ fn resume_session(session_path: &Path, commands: &[String], output_format: CliOu
|
||||||
if STUB_COMMANDS.contains(&cmd_root) {
|
if STUB_COMMANDS.contains(&cmd_root) {
|
||||||
if output_format == CliOutputFormat::Json {
|
if output_format == CliOutputFormat::Json {
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"{}",
|
||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
"kind": "unsupported_command",
|
"kind": "unsupported_command",
|
||||||
"action": "resume",
|
"action": "resume",
|
||||||
"status": "error",
|
"status": "error",
|
||||||
|
|
@ -3488,8 +3488,8 @@ fn resume_session(session_path: &Path, commands: &[String], output_format: CliOu
|
||||||
Ok(None) => {
|
Ok(None) => {
|
||||||
if output_format == CliOutputFormat::Json {
|
if output_format == CliOutputFormat::Json {
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"{}",
|
||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
"kind": "unsupported_resumed_command",
|
"kind": "unsupported_resumed_command",
|
||||||
"action": "resume",
|
"action": "resume",
|
||||||
"status": "error",
|
"status": "error",
|
||||||
|
|
@ -3508,8 +3508,8 @@ fn resume_session(session_path: &Path, commands: &[String], output_format: CliOu
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
if output_format == CliOutputFormat::Json {
|
if output_format == CliOutputFormat::Json {
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"{}",
|
||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
"kind": "cli_parse",
|
"kind": "cli_parse",
|
||||||
"action": "resume",
|
"action": "resume",
|
||||||
"status": "error",
|
"status": "error",
|
||||||
|
|
@ -3558,8 +3558,8 @@ fn resume_session(session_path: &Path, commands: &[String], output_format: CliOu
|
||||||
let hint = inline_hint
|
let hint = inline_hint
|
||||||
.or_else(|| fallback_hint_for_error_kind(error_kind).map(String::from));
|
.or_else(|| fallback_hint_for_error_kind(error_kind).map(String::from));
|
||||||
println!(
|
println!(
|
||||||
"{}",
|
"{}",
|
||||||
serde_json::json!({
|
serde_json::json!({
|
||||||
"kind": error_kind,
|
"kind": error_kind,
|
||||||
"action": "resume",
|
"action": "resume",
|
||||||
"status": "error",
|
"status": "error",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue