mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 09:35:28 +00:00
enshort constructions
This commit is contained in:
parent
7e1c03f8dd
commit
6702f9c7d6
2 changed files with 7 additions and 15 deletions
|
|
@ -47,15 +47,11 @@ impl Response {
|
|||
let control = control.clone();
|
||||
let form = form.clone();
|
||||
move |_, _| {
|
||||
control.update(match size_limit {
|
||||
Some(limit) => Some(
|
||||
limit as i32
|
||||
- (base.to_string_partial(UriHideFlags::QUERY).len() as i32
|
||||
+ Uri::escape_string(form.text().as_str(), None, false).len()
|
||||
as i32),
|
||||
),
|
||||
None => None,
|
||||
});
|
||||
control.update(size_limit.map(|limit| {
|
||||
limit as i32
|
||||
- (base.to_string_partial(UriHideFlags::QUERY).len() as i32
|
||||
+ Uri::escape_string(form.text().as_str(), None, false).len() as i32)
|
||||
}));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue