Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 98f9ad3

Browse files
Fixed typo in BitMapBackend
Small typo fix - `_phantomdata` instead of `_pantomdata`.
1 parent 3ad52da commit 98f9ad3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎plotters-bitmap/src/bitmap.rs‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ pub struct BitMapBackend<'a, P: PixelFormat = RGBPixel> {
4040
buffer: Buffer<'a>,
4141
/// Flag indicates if the bitmap has been saved
4242
saved: bool,
43-
_pantomdata: PhantomData<P>,
43+
_phantomdata: PhantomData<P>,
4444
}
4545

4646
impl<'a, P: PixelFormat> BitMapBackend<'a, P> {
@@ -57,7 +57,7 @@ impl<'a> BitMapBackend<'a, RGBPixel> {
5757
size: (w, h),
5858
buffer: Buffer::Owned(vec![0; Self::PIXEL_SIZE * (w * h) as usize]),
5959
saved: false,
60-
_pantomdata: PhantomData,
60+
_phantomdata: PhantomData,
6161
}
6262
}
6363

@@ -85,7 +85,7 @@ impl<'a> BitMapBackend<'a, RGBPixel> {
8585
size: (w, h),
8686
buffer: Buffer::Owned(vec![0; Self::PIXEL_SIZE * (w * h) as usize]),
8787
saved: false,
88-
_pantomdata: PhantomData,
88+
_data: PhantomData,
8989
})
9090
}
9191

@@ -128,7 +128,7 @@ impl<'a, P: PixelFormat> BitMapBackend<'a, P> {
128128
size: (w, h),
129129
buffer: Buffer::Borrowed(buf),
130130
saved: false,
131-
_pantomdata: PhantomData,
131+
_phantomdata: PhantomData,
132132
})
133133
}
134134

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /