Skip to content

Commit

Permalink
Guess that's why I didn't have it
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampfkarren committed Jul 6, 2024
1 parent bd4b410 commit 5993b7d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions selene/src/standard_library.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use selene_lib::{
#[derive(Debug)]
pub enum StandardLibraryError {
BaseStd {
source: Box<StandardLibraryError>,
name: String,
},

Expand Down Expand Up @@ -41,10 +40,10 @@ pub enum StandardLibraryError {
impl Display for StandardLibraryError {
fn fmt(&self, formatter: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
StandardLibraryError::BaseStd { name, source } => {
StandardLibraryError::BaseStd { name } => {
write!(
formatter,
"failed to collect base standard library `{name}`: {source}",
"failed to collect base standard library `{name}`",
)
}

Expand Down Expand Up @@ -201,7 +200,6 @@ fn from_name<V>(
if let Some(base) =
collect_standard_library(config, base_name, directory, config_directory)
.map_err(|error| StandardLibraryError::BaseStd {

Check warning on line 202 in selene/src/standard_library.rs

View workflow job for this annotation

GitHub Actions / build_linux

unused variable: `error`

Check warning on line 202 in selene/src/standard_library.rs

View workflow job for this annotation

GitHub Actions / build_linux_light

unused variable: `error`
source: Box::new(error),
name: base_name.clone(),
})?
{
Expand Down

0 comments on commit 5993b7d

Please sign in to comment.