Skip to content

Commit

Permalink
Match doc links with Shuttle Service current doc url (#885)
Browse files Browse the repository at this point in the history
* match doc links with current url

* missing test error comparisons
  • Loading branch information
XaviFP authored May 9, 2023
1 parent 04407e8 commit 58068ac
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions codegen/src/shuttle_main/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ fn check_return_type(signature: Signature) -> Option<TypePath> {
signature,
"shuttle_runtime::main functions need to return a service";
hint = "See the docs for services with first class support";
doc = "https://docs.rs/shuttle-service/latest/shuttle_runtime/attr.main.html#shuttle-supported-services"
doc = "https://docs.rs/shuttle-service/latest/shuttle_service/attr.main.html#shuttle-supported-services"
);
None
}
Expand All @@ -153,7 +153,7 @@ fn check_return_type(signature: Signature) -> Option<TypePath> {
r#type,
"shuttle_runtime::main functions need to return a first class service or 'Result<impl Service, shuttle_runtime::Error>";
hint = "See the docs for services with first class support";
doc = "https://docs.rs/shuttle-service/latest/shuttle_runtime/attr.main.html#shuttle-supported-services"
doc = "https://docs.rs/shuttle-service/latest/shuttle_service/attr.main.html#shuttle-supported-services"
);
None
}
Expand Down
2 changes: 1 addition & 1 deletion codegen/tests/ui/main/missing-return.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error: shuttle_runtime::main functions need to return a service

= help: See the docs for services with first class support
= note: https://docs.rs/shuttle-service/latest/shuttle_runtime/attr.main.html#shuttle-supported-services
= note: https://docs.rs/shuttle-service/latest/shuttle_service/attr.main.html#shuttle-supported-services

--> tests/ui/main/missing-return.rs:2:1
|
Expand Down
2 changes: 1 addition & 1 deletion codegen/tests/ui/main/return-tuple.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error: shuttle_runtime::main functions need to return a first class service or 'Result<impl Service, shuttle_runtime::Error>

= help: See the docs for services with first class support
= note: https://docs.rs/shuttle-service/latest/shuttle_runtime/attr.main.html#shuttle-supported-services
= note: https://docs.rs/shuttle-service/latest/shuttle_service/attr.main.html#shuttle-supported-services

--> tests/ui/main/return-tuple.rs:2:28
|
Expand Down

0 comments on commit 58068ac

Please sign in to comment.