1
0
mirror of https://github.com/actix/actix-website synced 2025-02-02 12:19:04 +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:
Nigel Greenway 2019-03-01 21:27:19 +00:00 committed by GitHub
parent b15d1a1437
commit 8f89a9c670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
};