Skip to content

Commit 73a4d2b

Browse files
author
Stephen Skeirik
committed
remove stable_mir::error::Error derive Serialize
1 parent 4517369 commit 73a4d2b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/stable_mir/src/error.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
77
use std::fmt::{Debug, Display, Formatter};
88
use std::{fmt, io};
9-
use serde::Serialize;
109

1110
macro_rules! error {
1211
($fmt: literal $(,)?) => { Error(format!($fmt)) };
@@ -28,7 +27,7 @@ pub enum CompilerError<T> {
2827
}
2928

3029
/// A generic error to represent an API request that cannot be fulfilled.
31-
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
30+
#[derive(Clone, Debug, Eq, PartialEq)]
3231
pub struct Error(pub(crate) String);
3332

3433
impl Error {

0 commit comments

Comments
 (0)