Movatterモバイル変換


[0]ホーム

URL:


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

Commit3a24f9f

Browse files
authored
Merge pull request#674 from FarmingtonS9/patch-1
Fixed typo in BitMapBackend
2 parents3ad52da +1ba1a37 commit3a24f9f

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)asusize]),
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)asusize]),
8787
saved:false,
88-
_pantomdata:PhantomData,
88+
_phantomdata: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)

[8]ページ先頭

©2009-2025 Movatter.jp