Skip to content

Commit ed1624d

Browse files
committed
replace inout with out
1 parent 7833d7a commit ed1624d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lightbug_api/app.mojo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct App[docs_enabled: Bool = False]:
1414
var router: Router
1515
var lightbug_dir: Path
1616

17-
fn __init__(inout self) raises:
17+
fn __init__(out self) raises:
1818
self.router = Router()
1919
self.lightbug_dir = Path()
2020

lightbug_api/routing.mojo

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct APIRoute(CollectionElement):
3636
struct Router:
3737
var routes: List[APIRoute]
3838

39-
fn __init__(inout self):
39+
fn __init__(out self):
4040
self.routes = List[APIRoute]()
4141

4242
fn __copyinit__(out self: Router, existing: Router):
@@ -45,5 +45,5 @@ struct Router:
4545
fn __moveinit__(out self: Router, owned existing: Router):
4646
self.routes = existing.routes
4747

48-
fn add_route(inout self, path: String, method: String, handler: fn (HTTPRequest) -> HTTPResponse, operation_id: String):
48+
fn add_route(out self, path: String, method: String, handler: fn (HTTPRequest) -> HTTPResponse, operation_id: String):
4949
self.routes.append(APIRoute(path, method, handler, operation_id))

0 commit comments

Comments
 (0)