Skip to content

Commit

Permalink
Rename AsciiSet constant
Browse files Browse the repository at this point in the history
  • Loading branch information
snpefk committed Sep 24, 2024
1 parent 9ffdcd4 commit 1a3f891
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/opensi-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ pub enum Resource {
}

use percent_encoding::{utf8_percent_encode, AsciiSet, CONTROLS};
const FRAGMENT: &AsciiSet = &CONTROLS.add(b' ');
const CONTROLS_ASCII_SET: &AsciiSet = &CONTROLS.add(b' ');

impl Atom {
pub fn get_resource(&self, filename: &str) -> Option<Resource> {
Expand All @@ -145,7 +145,7 @@ impl Atom {
// It also percent-encoded so we need to decode links.

let body = self.body.as_ref()?;
let resource_name = &utf8_percent_encode(body, FRAGMENT).to_string();
let resource_name = &utf8_percent_encode(body, CONTROLS_ASCII_SET).to_string();
let tmp = std::env::temp_dir().join(filename);
let variant: &str = self.variant.as_ref()?;

Expand Down

0 comments on commit 1a3f891

Please sign in to comment.