Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert adjacent #11668

Merged
merged 3 commits into from Jun 8, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Set Adjacent::Position case-insensitive

  • Loading branch information
GuillaumeGomez committed Jun 8, 2016
commit 40feb524d9200bf38b8822b2e8752fc47cd2e290
@@ -129,12 +129,12 @@ pub enum AdjacentPosition {

impl AdjacentPosition {
pub fn parse(position: &str) -> Fallible<AdjacentPosition> {
match position {
match_ignore_ascii_case! { &*position,
"beforebegin" => Ok(AdjacentPosition::BeforeBegin),
"afterbegin" => Ok(AdjacentPosition::AfterEnd),
"beforeend" => Ok(AdjacentPosition::AfterBegin),
"afterend" => Ok(AdjacentPosition::BeforeEnd),
_ => Err(Error::Syntax),
"afterbegin" => Ok(AdjacentPosition::AfterBegin),
"beforeend" => Ok(AdjacentPosition::BeforeEnd),
"afterend" => Ok(AdjacentPosition::AfterEnd),
_ => Err(Error::Syntax)
}
}
}
@@ -39,6 +39,7 @@ extern crate canvas;
extern crate canvas_traits;
extern crate caseless;
extern crate core;
#[macro_use]
extern crate cssparser;
extern crate devtools_traits;
extern crate encoding;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.