mirror of
https://github.com/servo/servo.git
synced 2025-08-10 07:55:33 +01:00
Fix some Clippy lints.
This commit is contained in:
parent
c23adde5a3
commit
3e5cd8815d
14 changed files with 37 additions and 43 deletions
|
@ -57,7 +57,7 @@ impl RelativePos {
|
|||
pub fn from_opts(start: Option<i64>, end: Option<i64>) -> RelativePos {
|
||||
RelativePos {
|
||||
start: start.unwrap_or(0),
|
||||
end: end,
|
||||
end,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -226,7 +226,7 @@ impl Response {
|
|||
|
||||
/// Convert to a filtered response, of type `filter_type`.
|
||||
/// Do not use with type Error or Default
|
||||
#[cfg_attr(rustfmt, rustfmt_skip)]
|
||||
#[rustfmt::skip]
|
||||
pub fn to_filtered(self, filter_type: ResponseType) -> Response {
|
||||
match filter_type {
|
||||
ResponseType::Default |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue