Skip to content

Commit

Permalink
rename lifetime to origin
Browse files Browse the repository at this point in the history
  • Loading branch information
saviorand committed Jan 6, 2025
1 parent 5db8359 commit b9c1129
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rustls/__init__.mojo
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ struct ClientConnection:
pass

fn write_tls_into[
lifetime: MutableLifetime
lifetime: Origin
](inout self, buf: Span[UInt8, lifetime]) raises:
pass

Expand Down Expand Up @@ -487,7 +487,7 @@ struct ServerConfigBuilder:
raise Error("failed to set ignore client order" + str(result.value))

fn set_alpn_protocols[
lt: ImmutableLifetime
lt: Origin
](inout self, protocols: Span[Span[UInt8, lt]]) raises:
"""
Set the ALPN protocol list to the given protocols.
Expand Down

0 comments on commit b9c1129

Please sign in to comment.