mirror of
https://github.com/actix/actix-website
synced 2025-02-02 04:09:06 +01:00
Make variable more readable
Due to a late night working on this whilst learning rust and so on, I read the `l` as a `1`. This extends the variable for enhanced readability.
This commit is contained in:
parent
b15d1a1437
commit
8f89a9c670
@ -58,8 +58,8 @@ fn main() {
|
||||
.resource("/", |r| r.f(index))
|
||||
});
|
||||
|
||||
server = if let Some(l) = listenfd.take_tcp_listener(0).unwrap() {
|
||||
server.listen(l)
|
||||
server = if let Some(listener) = listenfd.take_tcp_listener(0).unwrap() {
|
||||
server.listen(listener)
|
||||
} else {
|
||||
server.bind("127.0.0.1:3000").unwrap()
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user