Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat committed Feb 21, 2022
1 parent 5ac4c19 commit aedff3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion boa/src/builtins/error/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::{
},
profiler::BoaProfiler,
property::Attribute,
Context, JsResult, JsValue, JsString,
Context, JsResult, JsString, JsValue,
};

pub(crate) mod eval;
Expand Down
5 changes: 3 additions & 2 deletions boa/src/builtins/string/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2064,8 +2064,9 @@ pub(crate) fn get_substitution(
result.push_str("$<");
} else {
// a. Assert: Type(namedCaptures) is Object.
let named_captures = named_captures.as_object()
.expect("should be an object acording to spec");
let named_captures = named_captures
.as_object()
.expect("should be an object according to spec");

// b. Scan until the next > U+003E (GREATER-THAN SIGN).
let mut group_name = StdString::new();
Expand Down

0 comments on commit aedff3f

Please sign in to comment.