Skip to content

Commit

Permalink
fotmatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed May 14, 2024
1 parent b1b7af1 commit a468577
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/error.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
use std::{
io, result, str::Utf8Error
};
use std::{io, result, str::Utf8Error};
use thiserror::Error;

pub type BResult<T> = result::Result<T, Error>;
Expand All @@ -19,7 +17,6 @@ pub enum Error {
InvalidAlgorithm,
}


impl From<Utf8Error> for Error {
fn from(source: Utf8Error) -> Self {
Self::Utf8 {
Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ mod byond;
#[allow(dead_code)]
mod error;

#[cfg(feature = "file")]
pub mod file;
#[cfg(feature = "regexp")]
pub mod regexp;
#[cfg(feature = "transliteration")]
pub mod transliteration;
#[cfg(feature = "file")]
pub mod file;

#[cfg(not(target_pointer_width = "32"))]
compile_error!("rust-utils must be compiled for a 32-bit target");
2 changes: 0 additions & 2 deletions src/regexp.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use regex_cache::RegexCache;
use std::sync::Mutex;



byond_fn!(fn regex_replace (text, re, re_params, replacement) {
Some(regexp_replace(text, re, re_params, replacement))
});
Expand Down

0 comments on commit a468577

Please sign in to comment.